Skip to content

Commit

Permalink
improve sizing of notices and alert
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielgomeso committed Jun 28, 2024
1 parent 15fb9a6 commit 72ed399
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@

<body>
<%= render "layouts/navbar" %>

<% if notice || alert %>
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
<% end %>

<div class="container is-widescreen">
<% if notice %>
<div class="notification is-primary">
<%= notice %>
</div>
<% elsif alert %>
<div class="notification is-danger">
<%= alert %>
</div>
<% end %>
</div>

<main class="container is-widescreen p-3">
<%= yield %>
Expand Down

0 comments on commit 72ed399

Please sign in to comment.