Merged
Conversation
✅ Deploy Preview for linksforisrael ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Review Summary by QodoFix 'Add Initiative' modal positioning and improve styling
WalkthroughsDescription• Fixed modal positioning using flexbox centering instead of viewport percentages • Improved backdrop blur effect and added dark overlay for better focus • Redesigned close button with blue theme and centered placement • Enhanced X button with circular styling and hover effects • Better responsive height handling with max-width constraints Diagramflowchart LR
A["Modal Container<br/>Fixed positioning"] -->|"Apply flexbox<br/>centering"| B["Centered Modal<br/>Always visible"]
C["Backdrop<br/>Minimal blur"] -->|"Enhance blur<br/>& overlay"| D["Better Focus<br/>Dark backdrop"]
E["Close Button<br/>Red, absolute"] -->|"Redesign styling<br/>& placement"| F["Blue button<br/>Centered"]
G["X Button<br/>Plain text"] -->|"Add circular<br/>styling"| H["Circular button<br/>With hover"]
File Changes1. app/components/AddSite/AddSite.module.scss
|
- Use flexbox centering on parent for reliable modal positioning - Fix close button styling to match dark theme - Add circular X button with hover effect
32c5f71 to
8fc98b1
Compare
Code Review by Qodo
1. Avoid transition: all
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The 'Add Initiative' (הוסיפו יוזמה) modal was opening off-screen, with the form content cut off at the top.
Solution
Changed the modal centering approach from fixed positioning with viewport percentages to flexbox centering:
This ensures the modal is always properly centered regardless of sticky headers/footers or viewport size.
Changes
top/bottom/left/rightpercentagesBefore/After
Before: Modal positioned with
top: 5vh; bottom: 5vh; left: 5vw; right: 5vw— caused content to be cut offAfter: Modal centered with flexbox — always visible in viewport center