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:
Christian Semmler 2026-02-01 15:38:16 -08:00
parent 4101ecfa07
commit 50a25a802c
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C

View File

@ -215,6 +215,7 @@
function handleSlotFocus(e) {
e.target.select();
e.target.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });
}
// Character handler
@ -496,11 +497,20 @@
.section-inner {
padding-top: 4px;
min-width: 0;
}
.name-slots {
display: flex;
gap: 4px;
max-width: 100%;
overflow-x: auto;
scrollbar-width: none;
-ms-overflow-style: none;
}
.name-slots::-webkit-scrollbar {
display: none;
}
.name-slot {