summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-07-05 08:45:10 +0100
committerPhil Hughes <me@iamphill.com>2017-07-05 08:45:10 +0100
commit65c96bfac51f5e15c447f76d8e90aac5b3287bba (patch)
tree0c1ab43bce6b261a7424edb4416002fe79c9dbb3
parent5af1fcd6f329858d757bab0d67cb50af6c820160 (diff)
downloadgitlab-ce-repo-limited-width.tar.gz
Limit the file tree view container widthrepo-limited-width
Closes #34670
-rw-r--r--app/views/projects/tree/show.html.haml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/projects/tree/show.html.haml b/app/views/projects/tree/show.html.haml
index 96a08f9f8be..75f87bf752c 100644
--- a/app/views/projects/tree/show.html.haml
+++ b/app/views/projects/tree/show.html.haml
@@ -5,7 +5,6 @@
= auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
= render "projects/commits/head"
-= render 'projects/last_push'
-
-%div{ class: container_class }
+%div{ class: [container_class, ("limit-container-width" unless fluid_layout)] }
+ = render 'projects/last_push'
= render 'projects/files', commit: @last_commit, project: @project, ref: @ref