diff options
author | Marcel van Remmerden <mvanremmerden@gitlab.com> | 2019-09-10 13:49:41 +0100 |
---|---|---|
committer | Marcel van Remmerden <mvanremmerden@gitlab.com> | 2019-09-10 13:49:41 +0100 |
commit | 3ca216bec923feef01c72bf7d390192e64efd884 (patch) | |
tree | 08a4bff369655fa4282ff6266f8538a1de7e7e3f | |
parent | 5975f55c555330423aab49e7e0d2da2049a39200 (diff) | |
download | gitlab-ce-3ca216bec923feef01c72bf7d390192e64efd884.tar.gz |
Add bottom margin to snippet title
-rw-r--r-- | app/assets/stylesheets/framework/snippets.scss | 1 | ||||
-rw-r--r-- | app/views/shared/snippets/_header.html.haml | 2 | ||||
-rw-r--r-- | changelogs/unreleased/67248-snippet-title-whitespace.yml | 5 |
3 files changed, 7 insertions, 1 deletions
diff --git a/app/assets/stylesheets/framework/snippets.scss b/app/assets/stylesheets/framework/snippets.scss index 3ab83f4c8e6..1000fe616da 100644 --- a/app/assets/stylesheets/framework/snippets.scss +++ b/app/assets/stylesheets/framework/snippets.scss @@ -37,6 +37,7 @@ font-size: 2em; font-weight: $gl-font-weight-bold; min-height: $header-height; + margin-bottom: $gl-padding; } .snippet-edited-ago { diff --git a/app/views/shared/snippets/_header.html.haml b/app/views/shared/snippets/_header.html.haml index ebb634fe75f..1ed0435e255 100644 --- a/app/views/shared/snippets/_header.html.haml +++ b/app/views/shared/snippets/_header.html.haml @@ -17,7 +17,7 @@ = render "snippets/actions" .snippet-header.limited-header-width - %h2.snippet-title.prepend-top-0.append-bottom-0.qa-snippet-title + %h2.snippet-title.prepend-top-0.qa-snippet-title = markdown_field(@snippet, :title) - if @snippet.description.present? diff --git a/changelogs/unreleased/67248-snippet-title-whitespace.yml b/changelogs/unreleased/67248-snippet-title-whitespace.yml new file mode 100644 index 00000000000..b6460faac4d --- /dev/null +++ b/changelogs/unreleased/67248-snippet-title-whitespace.yml @@ -0,0 +1,5 @@ +--- +title: Add bottom margin to snippet title +merge_request: 32877 +author: +type: fixed |