Merged
Conversation
- Remove hardcoded iframe dimensions (300x520), let CSS handle sizing - Increase form container max-width from 400px to 640px - Increase form container height from 600px/80vh to 85vh/800px - Add title attribute to iframe for accessibility
✅ Deploy Preview for linksforisrael ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Review Summary by QodoFix Add Initiative form visibility and responsive sizing
WalkthroughsDescription• Removed hardcoded iframe dimensions to allow CSS-based responsive sizing • Increased form container max-width from 400px to 640px for better visibility • Adjusted form container height from 600px/80vh to 85vh/800px for optimal display • Added accessibility title attribute to iframe element Diagramflowchart LR
A["Hardcoded iframe<br/>dimensions 300x520"] -->|Remove| B["CSS-controlled<br/>sizing"]
C["Form container<br/>400px max-width"] -->|Increase to| D["640px max-width"]
E["Form container<br/>600px/80vh height"] -->|Adjust to| F["85vh/800px height"]
G["iframe element"] -->|Add title| H["Accessibility<br/>attribute"]
B --> I["Responsive<br/>form display"]
D --> I
F --> I
File Changes1. app/components/AddSite/AddSite.module.scss
|
Code Review by Qodo
1. 85vh modal height risk
|
The modal was trapped inside a sticky footer with overflow:hidden, causing it to be clipped. Using createPortal to render modal directly in document.body fixes the overlay/positioning issue.
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' form was being cut in half/not fully visible.
Solution
Testing