fix async flash?

This commit is contained in:
24c02 2026-01-12 10:31:15 -05:00
parent 421c6f2bf4
commit 415daef255
3 changed files with 10 additions and 13 deletions

View file

@ -5,7 +5,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
flex: 1;
padding: 2rem 1rem;
background: #f5f5f5;
@ -170,26 +170,23 @@
}
}
// Hide brand component in auth layout
.auth-layout {
display: flex;
flex-direction: column;
min-height: 100vh;
.brand {
display: none;
}
// Flash wrapper for auth layout
.auth-flash-wrapper {
position: absolute;
top: 0;
left: 0;
right: 0;
flex-shrink: 0;
padding: 2rem 1rem 0;
pointer-events: none;
.banner {
max-width: 640px;
margin-left: auto;
margin-right: auto;
pointer-events: auto;
}
}
}

View file

@ -13,7 +13,7 @@
}
&.development {
border: 5px dashed #00FF00;
border: 5px dashed #ff00c8;
}
&.uat {

View file

@ -9,7 +9,7 @@
else 'info'
end %>
<% auto_dismiss = [:success, :notice, :info].include?(type.to_sym) %>
<div class="banner <%= alert_class %>" role="alert" style="animation: slideInDown 0.3s ease-out;">
<div class="banner flex-row align-start <%= alert_class %>" role="alert" style="animation: slideInDown 0.3s ease-out;">
<% case type.to_sym %>
<% when :success %>
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">