Merge branch 'breadcrumbs-limit-width' into 'master'

Added limit-container-width to breadcrumbs container

Closes #34573

See merge request !12776
This commit is contained in:
Annabel Dunstone Gray 2017-07-11 23:05:58 +00:00
commit 919c9930fa
4 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
- hide_top_links = @hide_top_links || false
%nav.breadcrumbs{ role: "navigation" }
.breadcrumbs-container{ class: container_class }
.breadcrumbs-container{ class: [container_class, @content_class] }
.breadcrumbs-links.js-title-container
- unless hide_top_links
.title

View File

@ -1,6 +1,7 @@
- @no_container = true
- container_class = !fluid_layout && diff_view == :inline ? 'container-limited' : ''
- limited_container_width = fluid_layout ? '' : 'limit-container-width'
- @content_class = limited_container_width
- page_title "#{@commit.title} (#{@commit.short_id})", "Commits"
- page_description @commit.description
= render "projects/commits/head"

View File

@ -1,4 +1,5 @@
- @no_container = true
- @content_class = "limit-container-width" unless fluid_layout
- flash_message_container = show_new_nav? ? :new_global_flash : :flash_message
= content_for :meta_tags do

View File

@ -1,4 +1,5 @@
- @no_container = true
- @content_class = "limit-container-width" unless fluid_layout
- page_title @path.presence || _("Files"), @ref
= content_for :meta_tags do