You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ui): focusing a low field scrolls the whole drawer off-screen #326
The browser can scroll a drawer panel itself. Focusing a form field that sits low in a phone sheet (for example the registration form), or behind the sticky footer, slides the whole sheet up or sideways and nothing scrolls it back. The header ends up off-screen, with a blank band and a floating footer.
Approach
The drawer content is overflow-hidden (src/components/atoms/Drawer/Drawer.tsx). overflow: hidden is still a scroll container, so focus and scrollIntoView scroll it. Make the panel overflow-clip, which cannot scroll, and give scrolling bodies a bottom scroll padding (e.g. scroll-pb-28) so a focused field clears the sticky footer. Two independent prototype branches fixed it this way (ux/147-a-one-sheet, ux/147-b-edit-in-place); measured before the fix: panel scrollTop 329 after filling the last registration-style fields, and scrollLeft 128 on a side panel.
Acceptance criteria
At 390×844, focusing the last field of the registration form leaves the drawer panel's scrollTop and scrollLeft at 0, and the sheet header stays visible.
Verification checklist
Playwright at 390×844: open /gb/south-east/brighton/163/register, focus each input in turn, then read scrollTop/scrollLeft of the [data-vaul-drawer] element — both 0.
Activity
Ardnived commentedon Oct 25, 2026
@sydevs-bot implement
sydevs-bot commentedon Oct 25, 2026
🤖 no session running
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.
fix(loading): clip the loading panel's body, on the Skeleton organism