Skip to content

fix: prevent scroll jump when undo banner dismisses on mobile#17

Merged
jgordijn merged 1 commit into
mainfrom
fix/undo-banner-scroll-jump
Mar 9, 2026
Merged

fix: prevent scroll jump when undo banner dismisses on mobile#17
jgordijn merged 1 commit into
mainfrom
fix/undo-banner-scroll-jump

Conversation

@jgordijn

@jgordijn jgordijn commented Mar 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Undo banner was positioned inline in document flow, causing the entries list to shift when the banner auto-dismissed after 15 seconds
  • On mobile, this shift was visible as a scroll jump since the banner was often below the viewport
  • Changed to a fixed-position toast at the bottom of the viewport so it never affects document flow

Test plan

  • Mark an article as read on mobile — undo banner appears at bottom of screen
  • Wait 15s for auto-dismiss — no scroll jump occurs
  • Verify banner looks correct on desktop (centered, max-width constrained)
  • Test undo button still works

…bile

The undo banner was inline in document flow, causing content to shift
when it auto-dismissed after 15s — visible as a scroll jump on mobile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jgordijn jgordijn merged commit 5ae1a81 into main Mar 9, 2026
1 check passed
@jgordijn jgordijn deleted the fix/undo-banner-scroll-jump branch March 9, 2026 20:43
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