From 92ec4c7aae5cc326ee61b57d1ab4f7463f6159cb Mon Sep 17 00:00:00 2001 From: Trevor Flynn Date: Thu, 10 Aug 2017 14:05:23 +0000 Subject: Fix line numbers not matching up to code in code viewer. --- app/assets/stylesheets/framework/highlight.scss | 2 +- changelogs/unreleased/29811-fix-line-number-alignment.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/29811-fix-line-number-alignment.yml diff --git a/app/assets/stylesheets/framework/highlight.scss b/app/assets/stylesheets/framework/highlight.scss index 71d5949b023..c63114f85b4 100644 --- a/app/assets/stylesheets/framework/highlight.scss +++ b/app/assets/stylesheets/framework/highlight.scss @@ -47,7 +47,7 @@ font-family: $monospace_font; display: block; font-size: $code_font_size !important; - line-height: 19px; + min-height: 19px; white-space: nowrap; i { diff --git a/changelogs/unreleased/29811-fix-line-number-alignment.yml b/changelogs/unreleased/29811-fix-line-number-alignment.yml new file mode 100644 index 00000000000..94b3328a7f2 --- /dev/null +++ b/changelogs/unreleased/29811-fix-line-number-alignment.yml @@ -0,0 +1,4 @@ +--- +title: Fix the alignment of line numbers to lines of code in code viewer +merge_request: 13403 +author: Trevor Flynn \ No newline at end of file -- cgit v1.2.1