Conversation
✅ Deploy Preview for hope-for-haiti ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Greptile SummaryThis PR makes a minor styling adjustment to the global Issues found:
PR Checklist areas needing improvement:
Confidence Score: 3/5
Important Files Changed
|
| position="bottom-right" | ||
| containerClassName="general-toaster" | ||
| containerStyle={{ | ||
| top: 20, | ||
| right: 80 | ||
| }} |
There was a problem hiding this comment.
Conflicting position and containerStyle
position="bottom-right" tells react-hot-toast to anchor the container to the bottom-right of the viewport (it sets a bottom offset internally). Adding top: 20 in containerStyle simultaneously sets a top value on the same fixed element, which fights against the bottom offset and can cause unpredictable positioning across browsers — in many cases the toast will appear near the top of the screen rather than the bottom.
If the intent is to move the toaster to the top-right, change the position prop and use only top/right offsets:
| position="bottom-right" | |
| containerClassName="general-toaster" | |
| containerStyle={{ | |
| top: 20, | |
| right: 80 | |
| }} | |
| position="top-right" | |
| containerClassName="general-toaster" | |
| containerStyle={{ | |
| top: 20, | |
| right: 80 | |
| }} |
If the intent is to keep it at the bottom-right but shift it inward, use bottom/right instead:
containerStyle={{
bottom: 20,
right: 80
}}
| top: 20, | ||
| right: 80 |
There was a problem hiding this comment.
Hardcoded px values in inline styles
React treats bare number values in inline style objects as px, so top: 20 and right: 80 resolve to 20px and 80px. The project convention requires rem units (1rem = 10px). For inline styles, string values must be used:
| top: 20, | |
| right: 80 | |
| top: "2rem", | |
| right: "8rem" |
Context Used: Rule from dashboard - Use rem units instead of px for measurements like border-radius, padding, and width in CSS files. Th... (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
#281 minor styling changes