feat(carousel): add size probe for responsive layout and optimize item width calculation

This commit is contained in:
2026-09-24 15:42:44 -03:00
parent f4959e0250
commit 3558b6f575
5 changed files with 201 additions and 32 deletions

View File

@@ -4,8 +4,17 @@
}
.carousel {
position: relative;
width: 100%;
&__size-probe {
position: absolute;
height: 0;
visibility: hidden;
pointer-events: none;
contain: strict;
}
&__frame {
position: relative;
display: grid;