File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
- .flash__container {
1
+ .flash {
2
2
position : fixed;
3
3
bottom : 0 ;
4
4
right : 0 ;
8
8
display : flex;
9
9
flex-direction : column;
10
10
align-items : flex-end;
11
- padding : var (--space-s );
12
11
gap : var (--space-xs );
13
12
width : fit-content;
14
13
14
+ & .flash__message : last-child {
15
+ margin-bottom : var (--space-s );
16
+ }
17
+
15
18
& .flash__message {
16
19
padding : var (--space-xs ) var (--space-s );
17
20
border-radius : 4px ;
18
21
transition : opacity 750ms ease-out;
22
+ margin : 0 var (--space-s );
19
23
}
20
24
21
25
& .flash__alert {
Original file line number Diff line number Diff line change 1
1
<% flash.each do |flash_type, message| %>
2
- <div class ="flash__message flash__#{ flash_type} ">
2
+ <div class ="flash__message flash__ <%= flash_type %> " data-controller =" flash ">
3
3
<%= message %>
4
4
</ div >
5
5
<% end %>
Original file line number Diff line number Diff line change 46
46
<%= render "application/header" %>
47
47
< main class ="">
48
48
< div id ="start-here "> </ div >
49
- < div class ="flash "> <%= render "flash" %> </ div >
49
+ < div id =" flash " class ="flash "> <%= render "flash" %> </ div >
50
50
<%= yield %>
51
51
</ main >
52
52
<%= render "application/footer" %>
You can’t perform that action at this time.
0 commit comments