mirror of
https://github.com/lscambo13/ElegantFin.git
synced 2026-10-26 09:39:34 +00:00
New: Added scroll snapping to horizontal lists
This commit is contained in:
1 parent
c95c635bb8
commit
3c4e59be76
1 file changed
+4
@@ -974,6 +974,8 @@ select {
|
|||||||
padding: var(--padding);
|
padding: var(--padding);
|
||||||
transition: width 0.5s;
|
transition: width 0.5s;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
|
scroll-snap-align: center;
|
||||||
|
scroll-snap-stop: always;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this makes the cards bigger and center aligned on older browsers */
|
/* this makes the cards bigger and center aligned on older browsers */
|
||||||
@@ -1125,6 +1127,8 @@ select {
|
|||||||
.emby-scroller,
|
.emby-scroller,
|
||||||
.scrollX {
|
.scrollX {
|
||||||
padding-left: var(--sidePadding);
|
padding-left: var(--sidePadding);
|
||||||
|
scroll-snap-type: x proximity;
|
||||||
|
scroll-padding-inline: var(--sidePadding);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sectionTabs .scrollX {
|
.sectionTabs .scrollX {
|
||||||
|
|||||||
Reference in new issue
Block a user