Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

fix: in-app notification banner placement#253

Open
Just-Insane wants to merge 3 commits into7w1:devfrom
CloudHub-Social:fix/notification-banner
Open

fix: in-app notification banner placement#253
Just-Insane wants to merge 3 commits into7w1:devfrom
CloudHub-Social:fix/notification-banner

Conversation

@Just-Insane
Copy link
Collaborator

Summary

NotificationBanner was rendered inside Room.tsx, meaning:

  • It only appeared while a room was open
  • It caused layout shift, pushing page content down

Fix

Move the single <NotificationBanner /> render point to ClientLayout.tsx. The banner CSS is updated to position: fixed; top: 0; left: 0; right: 0 so it overlays content without shifting the layout.

Changed files

File Change
src/app/pages/client/ClientLayout.tsx Add <NotificationBanner /> render
src/app/features/room/Room.tsx Remove old <NotificationBanner /> render
src/app/components/notification-banner/NotificationBanner.css.ts position: fixed; top/left/right: 0

Evie Gauthier added 2 commits March 8, 2026 14:37
- render NotificationBanner in ClientLayout so it spans the full viewport
  as position:fixed and doesn't displace page content
- remove the old banner render from Room.tsx
@Just-Insane Just-Insane marked this pull request as ready for review March 8, 2026 18:44
@Just-Insane Just-Insane requested a review from 7w1 as a code owner March 8, 2026 18:44
@7w1
Copy link
Owner

7w1 commented Mar 8, 2026

Remove old render

I... don't see that in the code? Only the addition of one in ClientLayout. Guessing it got bundled into a different PR.

@Just-Insane
Copy link
Collaborator Author

Ah... that could be. I'll take a look in a little bit.

Completes the placement move — banner is now rendered only in
ClientLayout as position:fixed.
@Just-Insane
Copy link
Collaborator Author

Should be good now

Just-Insane pushed a commit to CloudHub-Social/sable that referenced this pull request Mar 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants