From c21df3762fa6f851bdda6ebe7af6766d993dd62f Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Gray Date: Wed, 12 Dec 2018 10:39:27 -0600 Subject: [PATCH] Adjust line height of blame view line numbers --- app/assets/stylesheets/framework/highlight.scss | 7 ++++++- changelogs/unreleased/51668-fix-line-numbers.yml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/51668-fix-line-numbers.yml diff --git a/app/assets/stylesheets/framework/highlight.scss b/app/assets/stylesheets/framework/highlight.scss index 73533571a2f..946f575ac13 100644 --- a/app/assets/stylesheets/framework/highlight.scss +++ b/app/assets/stylesheets/framework/highlight.scss @@ -42,7 +42,6 @@ padding: 10px; text-align: right; float: left; - line-height: 1; a { font-family: $monospace-font; @@ -69,3 +68,9 @@ } } } + +// Vertically aligns line numbers (eg. blame view) +// see https://gitlab.com/gitlab-org/gitlab-ce/issues/54048 +td.line-numbers { + line-height: 1; +} diff --git a/changelogs/unreleased/51668-fix-line-numbers.yml b/changelogs/unreleased/51668-fix-line-numbers.yml new file mode 100644 index 00000000000..ac6e45e3cc7 --- /dev/null +++ b/changelogs/unreleased/51668-fix-line-numbers.yml @@ -0,0 +1,5 @@ +--- +title: Adjust line-height of blame view line numbers +merge_request: +author: +type: fixed