Because we are using an edge-to-edge layout for the flash messages,
the negative margins on the row were expanding the element offscreen.
Bootstrap provides a "no-gutter" class for removing these margins,
but that also drops the spacing between columns which we want to preserve.
So instead we use a margin override on the row only.
Additionally, drop some padding css in favour of a utility class
Fixes #3351
Bug was introduced in
3dd639c8d02677b773935aa982ba0c9f3cc209e5
/* Rules for "flash" notice boxes shown at the top of the content area */
.flash {
- padding: $lineheight;
-
&.error {
background-color: #ff7070;
}
<% if flash[:error] %>
- <div class="flash error row align-items-center">
+ <div class="flash error row mx-0 p-3 align-items-center">
<div class="col-auto">
<picture>
<source srcset="<%= image_path "notice.svg" %>" type="image/svg+xml" />
<% end %>
<% if flash[:warning] %>
- <div class="flash warning row align-items-center">
+ <div class="flash warning row mx-0 p-3 align-items-center">
<div class="col-auto">
<picture>
<source srcset="<%= image_path "notice.svg" %>" type="image/svg+xml"></source>
<% end %>
<% if flash[:notice] %>
- <div class="flash notice row align-items-center">
+ <div class="flash notice row mx-0 p-3 align-items-center">
<div class="col-auto">
<picture>
<source srcset="<%= image_path "notice.svg" %>" type="image/svg+xml"></source>