Skip to content

fix(frontend): stop settings pages scrolling the last section off screen - #19

Merged
CubityFirst merged 1 commit into
mainfrom
fix/settings-overscroll
Nov 12, 2026
Merged

CubityFirst merged 1 commit into
mainfrom
fix/settings-overscroll

Conversation

@CubityFirst

Copy link
Copy Markdown
Owner

On every settings page (user, site, org) you could scroll so far past the end that the last section, usually Danger zone, ended up almost off the top of the screen, above a screenful of blank space.

The content column had a fixed bottom padding of nearly a full viewport, so short trailing sections could still reach the scroll-spy reading line. That padding is now a measured spacer: it gives the last section exactly enough tail to reach the reading line (about 160px from the top) and no more. It re-measures on resize and as content loads, and adds nothing when the page fits without scrolling. Scroll-spy behaviour is unchanged, so Danger zone still highlights at the bottom without stealing the highlight from Sessions. Unit tests cover the spacer sizing.

Replace the near-viewport-tall bottom padding on the settings content column with a measured spacer that gives the last section exactly enough tail to reach the scroll-spy reading line, and no more.
@CubityFirst
CubityFirst merged commit 87a6333 into main Nov 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant