Skip to content

fix: keep expanded notifications below the header - #786

Closed
peterc wants to merge 1 commit into
dev-null-sh:productionfrom
peterc:fix/expanded-notifications-stacking
Closed

peterc wants to merge 1 commit into
dev-null-sh:productionfrom
peterc:fix/expanded-notifications-stacking

Conversation

@peterc

@peterc peterc commented Oct 20, 2026 •

Copy link
Copy Markdown

Expanding a notification group (for example, “2 followers”) and scrolling it underneath the sticky header makes the follower names and handles paint over the title and filter buttons. This happens on desktop as well as mobile.

Before the fix: expanded follower names overlap the sticky notification header

The expanded names use relative z-10, matching the header's z-10, and appear later in the DOM. #706 isolated the summary content, but the expanded list is rendered outside that wrapper. #570 subsequently added the positioned profile-preview triggers to expanded rows.

Add isolate to the expanded group wrapper so its descendants stay below the header. The shared wrapper covers every expandable notification type.

Validation:

  • Rendered the actual notification page component and application CSS in a local browser harness with sample follower data. Expanded the group and scrolled at 1280px and 390px widths; hit-testing confirmed names cover the header without the class and the header covers them with it.
  • Checked that visible profile links and follow buttons remain hit-testable.
  • All 26 tests in NotificationIndex.test.tsx and NotificationInbox.test.tsx pass.
  • bun run test:types passes.
  • bun run test:lint completes with warnings and no errors; formatting passes.

@peterc

peterc commented Oct 20, 2026 •

Copy link
Copy Markdown
Author

A note on validation: this fix was tested in a temporary local browser harness rendering the actual notification React component and application CSS but not running the full Laravel app locally (I should probably sort that out if I'm going to do anything else :-D)

So if this PR is merged, it would be well worth doing a visual check in the running app: expand a followers group, scroll it under the notification header on desktop and mobile, and check that profile previews and follow buttons still behave as expected.

@brendt

brendt commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Already fixed, thanks for the contribution though!

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.

2 participants