Skip to content

fix: keep notification text under the header when scrolling on mobile - #706

Merged
nunomaduro merged 1 commit into
dev-null-sh:productionfrom
ashkesarmaa:fix/notifications-mobile-header
Oct 19, 2026
Merged

nunomaduro merged 1 commit into
dev-null-sh:productionfrom
ashkesarmaa:fix/notifications-mobile-header

Conversation

@ashkesarmaa

Copy link
Copy Markdown
Contributor

Problem

On mobile, scrolling the notifications page makes the names and @usernames of the rows show on top of the sticky header, over the title and the filter pills. It looks broken.

Change

  • While scrolling, rows now slide under the header, the same way they do on desktop.
  • Nothing else about the rows changes. The whole row is still clickable, and the name and username links still work.

Implementation

  • Each notification row has a link stretched over it (relative z-10), so the whole row can be clicked. Nothing contained that z-10, so it was stacked against the whole page and ended up above the header's z-10, which comes earlier in the DOM.
  • Adding isolate to the row wrapper gives each row its own stacking context. The link's z-10 now only applies inside its row, and the header stays on top.

Checked

  • In a browser at 390px wide, scrolled 260px into the list with 25 notifications. Before the fix, the header was covered by row links (@follower). After the fix, only the header shows there.
  • bun run test:types and bun run test:lint pass.

On a phone, scrolling the notifications page made the names and
usernames of a row show on top of the sticky header and its filter
pills.

Each row has a link stretched over it with a z-index, so that the whole
row is clickable. Nothing contained that z-index, so the link was
stacked against the page, above the header. Adding `isolate` to the row
keeps the link's z-index inside its own row, and the header stays on top.
@nunomaduro
nunomaduro merged commit 4d46996 into dev-null-sh:production Oct 19, 2026
5 checks 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.

2 participants