Skip to content

Commit

Permalink
white box doesnt fill whole height of viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Oct 31, 2024
1 parent 40534e5 commit d37d476
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@
<body>
<%= render partial: "layouts/flashes" %>
<%= render partial: "layouts/nav" %>
<div class="container mx-2 mx-md-auto w-auto w-md-100 bg-white mt-5 px-4 pb-5 pt-4 border border-thick">
<% if @title %>
<header>
<h1 class="mb-4"><%= @title %></h1>
</header>
<% end %>
<main>
<%= yield %>
</main>
<div class="container mx-2 mx-md-auto w-auto w-md-100 mt-5 g-0">
<div class="bg-white w-100 px-4 pb-5 pt-4 border border-thick">
<% if @title %>
<header>
<h1 class="mb-4"><%= @title %></h1>
</header>
<% end %>
<main>
<%= yield %>
</main>
</div>
</div>
<%= render partial: "layouts/footer" %>
</body>
Expand Down

0 comments on commit d37d476

Please sign in to comment.