mirror of
https://github.com/isledecomp/isle.pizza.git
synced 2026-03-01 14:27:38 +00:00
Add scroll-into-view behavior for name slots on mobile
When name slots overflow on narrow screens, focusing a partially visible slot now smoothly scrolls it into view. Scrollbar is hidden for cleaner UI.
This commit is contained in:
parent
4101ecfa07
commit
50a25a802c
@ -215,6 +215,7 @@
|
|||||||
|
|
||||||
function handleSlotFocus(e) {
|
function handleSlotFocus(e) {
|
||||||
e.target.select();
|
e.target.select();
|
||||||
|
e.target.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Character handler
|
// Character handler
|
||||||
@ -496,11 +497,20 @@
|
|||||||
|
|
||||||
.section-inner {
|
.section-inner {
|
||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name-slots {
|
.name-slots {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow-x: auto;
|
||||||
|
scrollbar-width: none;
|
||||||
|
-ms-overflow-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name-slots::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name-slot {
|
.name-slot {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user