Skip to content

Commit 7c96d05

Browse files
authored
fix overlaps in project show header (#4852)
* adds utility classes so that title and buttons stack below sm breakpoints
1 parent 82d77f0 commit 7c96d05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/dashboard/app/views/projects/show.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</div>
99

1010
<div class='row'>
11-
<div class="col-2 align-self-center justify-content-left d-flex">
11+
<div class="col-6 col-sm-3 align-self-center justify-content-left d-flex mt-2 order-2 order-sm-1">
1212
<%= button_to(
1313
'Create ZIP',
1414
project_zip_to_template_path(@project.id),
@@ -19,11 +19,11 @@
1919
%>
2020

2121
</div>
22-
<div class='page-header text-center col-8'>
22+
<div class='page-header text-center col-12 col-sm-6 order-1 order-sm-2'>
2323
<h1 class="my-2 h3"><%= @project.title %></h1>
2424
<small class="text-muted">This is a preview of the new 'Project Manager'</small>
2525
</div>
26-
<div class="col-2 align-self-center justify-content-end d-flex">
26+
<div class="col-6 col-sm-3 align-self-center justify-content-end d-flex mt-2 order-3">
2727
<%= link_to 'Back to Projects', projects_path, class: 'btn btn-default align-self-start', title: 'Return to projects page' %>
2828
</div>
2929
</div>

0 commit comments

Comments
 (0)