fix: limit announcement modal height (#307)#312
fix: limit announcement modal height (#307)#312kushbosamiya wants to merge 1 commit intoarkade-os:masterfrom
Conversation
WalkthroughThe pull request modifies three component files to address announcement modal viewport constraints. It adjusts Announcement icon styling, adds optional style customization to FlexCol, and significantly restructures Modal to use React Portal with height constraints, adjusted z-indices, and scrollable overflow behavior for content exceeding viewport height. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.env:
- Line 2: Add a trailing newline to the .env file so it ends with a blank line;
update the file containing the line "GENERATE_SOURCEMAP=false" to ensure a final
newline character is present (POSIX-compliant end-of-file newline).
| @@ -1,2 +1,2 @@ | |||
| CI=false | |||
| GENERATE_SOURCEMAP=false | |||
| GENERATE_SOURCEMAP=false No newline at end of file | |||
There was a problem hiding this comment.
Add a trailing newline at the end of the file.
Per static analysis, the file is missing a blank line at the end. Many tools and POSIX conventions expect files to end with a newline.
Proposed fix
CI=false
-GENERATE_SOURCEMAP=false
+GENERATE_SOURCEMAP=false
+📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| GENERATE_SOURCEMAP=false | |
| GENERATE_SOURCEMAP=false | |
🧰 Tools
🪛 dotenv-linter (4.0.0)
[warning] 2-2: [EndingBlankLine] No blank line at the end of the file
(EndingBlankLine)
🤖 Prompt for AI Agents
In @.env at line 2, Add a trailing newline to the .env file so it ends with a
blank line; update the file containing the line "GENERATE_SOURCEMAP=false" to
ensure a final newline character is present (POSIX-compliant end-of-file
newline).
|
Thank you for your contribution! The following files seem unrelated to the UI fix, can you please roll them back to simplify the review process?
|
|
Please add link to related issue in PR description: |
b1140dd to
4ac1fc8
Compare
|
@bordalix Please review the flagged PR when you have time and let me know if there’s anything I should update. Happy to contribute |
bordalix
left a comment
There was a problem hiding this comment.
concept NACK
Instead of scrolling the whole modal content (see attached video) only the middle section (the 3 bullet points) should scroll.
Screen.Recording.2026-02-02.at.14.25.44.mov
There was a problem hiding this comment.
All the changes is this file seem not related to this PR.
Please remove.
| top: '0', | ||
| left: '0', | ||
| zIndex: 22, // Higher than overlay | ||
| zIndex: 90, |
There was a problem hiding this comment.
| zIndex: 90, | |
| zIndex: 90, // Higher than overlay |
keep comments
| position: 'absolute' as 'absolute', | ||
| pointerEvents: 'none' as 'none', // Allow clicks to pass through to children | ||
| position: 'fixed' as 'fixed', | ||
| pointerEvents: 'none' as 'none', |
There was a problem hiding this comment.
| pointerEvents: 'none' as 'none', | |
| pointerEvents: 'none' as 'none', // Allow clicks to pass through to children |
keep comments
| border: '1px solid var(--dark10)', | ||
| backgroundColor: 'var(--ion-background-color)', | ||
| pointerEvents: 'auto' as 'auto', // Enable clicks on the modal content | ||
| pointerEvents: 'auto' as 'auto', |
There was a problem hiding this comment.
| pointerEvents: 'auto' as 'auto', | |
| pointerEvents: 'auto' as 'auto', // Enable clicks on the modal content |
keep comments
| }, []) | ||
|
|
||
| return ( | ||
| return createPortal( |
There was a problem hiding this comment.
We need to evaluate the usage of createPortal when the app is used with expo (i.e. mobile apps)
|
👋 Hey @kushbosamiya — @bordalix requested changes on this PR back on February 2nd and it's been quiet since. Is this still something you plan to address, or should we close it? |
|
Hey @kushbosamiya — just checking in 👋 @bordalix requested changes a few days ago. Any progress or questions on the feedback? Happy to help unblock if needed. |
🔍 Arkana PR ReviewPR: wallet#312 — fix: limit announcement modal height (#307) Changes
Findings✅ Portal approach is correct. Using
✅ FlexCol ✅ No security concerns. No user input handling changes. Verdict: LGTM — solid fix for the mobile overflow issue. The portal pattern is the right approach. |
|
Hey @kushbosamiya — this PR has had changes requested for about 7 weeks (bordalix's review on Feb 2). Still planning to address the feedback? Happy to help if you're stuck on anything. |
Fixes #307
Fixes an issue where the blurred section overlaps the component screen on mobile when users zoom in, hiding the CTA buttons.
What’s changed :
Summary by CodeRabbit
Release Notes
New Features
Improvements
✏️ Tip: You can customize this high-level summary in your review settings.