diff options
author | Phil Hughes <me@iamphill.com> | 2017-06-12 17:53:27 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-06-12 17:53:27 +0100 |
commit | 1eb2363f3d40b554b5810e6cacef5621ee5d6c45 (patch) | |
tree | 2aabebad2a6272f409c60350d4ae2971a7f39562 | |
parent | 7c57dbefe7d5dbe69a088e159c7492bba5a98859 (diff) | |
download | gitlab-ce-commit-comments-limited-width.tar.gz |
Added limited widths to header of snippetscommit-comments-limited-width
-rw-r--r-- | app/assets/stylesheets/pages/issuable.scss | 1 | ||||
-rw-r--r-- | app/views/projects/snippets/show.html.haml | 3 | ||||
-rw-r--r-- | app/views/shared/snippets/_header.html.haml | 2 | ||||
-rw-r--r-- | app/views/snippets/show.html.haml | 3 |
4 files changed, 6 insertions, 3 deletions
diff --git a/app/assets/stylesheets/pages/issuable.scss b/app/assets/stylesheets/pages/issuable.scss index e31280e46f0..d14bd47b7c2 100644 --- a/app/assets/stylesheets/pages/issuable.scss +++ b/app/assets/stylesheets/pages/issuable.scss @@ -12,6 +12,7 @@ .info-well, .commit-ci-menu, .files-changed, + .limited-header-width, .limited-width-notes { @extend .fixed-width-container; } diff --git a/app/views/projects/snippets/show.html.haml b/app/views/projects/snippets/show.html.haml index 44689c1be5a..c7772983f18 100644 --- a/app/views/projects/snippets/show.html.haml +++ b/app/views/projects/snippets/show.html.haml @@ -1,8 +1,9 @@ +- @content_class = "limit-container-width limited-inner-width-container" - page_title "#{@snippet.title} (#{@snippet.to_reference})", "Snippets" = render 'shared/snippets/header' -.project-snippets.limit-container-width +.project-snippets %article.file-holder.snippet-file-content = render 'shared/snippets/blob' diff --git a/app/views/shared/snippets/_header.html.haml b/app/views/shared/snippets/_header.html.haml index 813d8d69d8d..17b34c5eeb3 100644 --- a/app/views/shared/snippets/_header.html.haml +++ b/app/views/shared/snippets/_header.html.haml @@ -16,7 +16,7 @@ - else = render "snippets/actions" -.snippet-header +.snippet-header.limited-header-width %h2.snippet-title.prepend-top-0.append-bottom-0 = markdown_field(@snippet, :title) diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml index 4f3b51444ad..5942956f147 100644 --- a/app/views/snippets/show.html.haml +++ b/app/views/snippets/show.html.haml @@ -1,8 +1,9 @@ +- @content_class = "limit-container-width limited-inner-width-container" - page_title "#{@snippet.title} (#{@snippet.to_reference})", "Snippets" = render 'shared/snippets/header' -.personal-snippets.limit-container-width +.personal-snippets %article.file-holder.snippet-file-content = render 'shared/snippets/blob' |