-
Notifications
You must be signed in to change notification settings - Fork 179
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
fix: width of price impact speedbump #557
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -287,23 +287,21 @@ export function SummaryDialog(props: SummaryDialogProps) { | |||
}, [ackPriceImpact, props.impact, showSpeedbump]) | |||
|
|||
return ( | |||
<> | |||
<Column style={{ minWidth: isPageCentered ? Math.min(400, width) : 'auto', height: '100%' }} ref={setBoundary}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could something like this work?
{{ minWidth: isPageCentered ? 400 : 'auto', width: isPageCentered: '100%': undefined, height: '100%' }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, is the 400 here related to the 420 width on speedbump?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope - this is just the min width of a page centered dialog. i've updated to name this value so it's more understandable.
84282cb
to
a5abb98
Compare
🎉 This PR is included in version 2.48.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
adjust the max-width of the price impact speed bump content
https://www.notion.so/uniswaplabs/Weird-UI-state-of-warning-modal-746px-52f715bda79c466d89e5b08d374f10b5?pvs=4
test plan