mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-05 04:15:58 +00:00
30 lines
551 B
CSS
30 lines
551 B
CSS
.grid {
|
|
contain: strict;
|
|
position: relative;
|
|
flex-grow: 1;
|
|
padding: 0 22px;
|
|
overflow-y: auto;
|
|
scroll-snap-type: both mandatory;
|
|
}
|
|
|
|
.slotGrid {
|
|
contain: strict;
|
|
position: relative;
|
|
display: grid;
|
|
grid-auto-rows: 183px;
|
|
column-gap: 18px;
|
|
row-gap: 21px;
|
|
}
|
|
|
|
.slot {
|
|
contain: strict;
|
|
scroll-snap-align: start;
|
|
}
|
|
|
|
.slot:last-child {
|
|
/* This causes the grid to scroll up smoothly to the last item when its height
|
|
shrinks, and ensures that the user can always scroll the last row fully in
|
|
view */
|
|
scroll-snap-align: end;
|
|
}
|