Skip to content
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: contained tokenlist height #531

Merged
merged 2 commits into from
Mar 3, 2023
Merged

Conversation

just-toby
Copy link
Collaborator

fixes a bug where the token list was being cut off in the non-page-centered version of the widget.

@just-toby just-toby requested a review from JFrankfurt March 3, 2023 19:27
@vercel
Copy link

vercel bot commented Mar 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
widgets ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 3, 2023 at 7:54PM (UTC)

Comment on lines 106 to 109
style={{
minWidth: isPageCentered ? Math.min(400, width) : 'auto',
minHeight: isPageCentered ? 'unset' : '100%',
}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you do this with $isPageCentered as a transient styled-component prop and something like min(400px, 100vw)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

Copy link
Contributor

@JFrankfurt JFrankfurt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment

@vercel vercel bot temporarily deployed to Preview March 3, 2023 19:35 Inactive
@just-toby just-toby force-pushed the fix/tokenlist-height-contained branch from ddaec27 to c57299d Compare March 3, 2023 19:53
@vercel vercel bot temporarily deployed to Preview March 3, 2023 19:54 Inactive
@just-toby
Copy link
Collaborator Author

Screen.Recording.2023-03-03.at.11.50.35.AM.mov

@just-toby just-toby requested a review from JFrankfurt March 3, 2023 19:54
@just-toby just-toby merged commit 36b0e71 into main Mar 3, 2023
@just-toby just-toby deleted the fix/tokenlist-height-contained branch March 3, 2023 19:56
@github-actions
Copy link

github-actions bot commented Mar 3, 2023

🎉 This PR is included in version 2.44.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants