summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel van Remmerden <mvanremmerden@gitlab.com>2019-09-10 13:49:41 +0100
committerMarcel van Remmerden <mvanremmerden@gitlab.com>2019-09-10 13:49:41 +0100
commit3ca216bec923feef01c72bf7d390192e64efd884 (patch)
tree08a4bff369655fa4282ff6266f8538a1de7e7e3f
parent5975f55c555330423aab49e7e0d2da2049a39200 (diff)
downloadgitlab-ce-3ca216bec923feef01c72bf7d390192e64efd884.tar.gz
Add bottom margin to snippet title
-rw-r--r--app/assets/stylesheets/framework/snippets.scss1
-rw-r--r--app/views/shared/snippets/_header.html.haml2
-rw-r--r--changelogs/unreleased/67248-snippet-title-whitespace.yml5
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