-
-
Notifications
You must be signed in to change notification settings - Fork 5
Make Lexbox notifications scroll if too tall #2023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
And keep the close button in view. Using sticky is a bit weird, but fixed and absolute make things messy and this is only for edge cases.
UI unit Tests 1 files ± 0 3 suites - 42 0s ⏱️ -28s Results for commit e2d0e3a. ± Comparison against base commit ef484ee. This pull request removes 111 and adds 10 tests. Note that renamed tests count towards both. |
📝 WalkthroughWalkthroughUpdates the Notify.svelte component’s markup and classes to constrain toast container height, enable vertical scrolling within notifications, and keep the close button visible via sticky positioning. No logic or data flow changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (3)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
And keep the close button in view. Using sticky is a bit weird, but fixed and absolute make things messy and this is only for edge cases.
Big notifications now look like this:


And the close button doesn't scroll out of view:
If we use position: fixed or absolute then the button is removed from the dom flow and things go underneath it. This is a much easier fix for this edge case.