-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: chains overflow on mobile (#998)
* fixed too many items in chains * fixed scrollbar showing up * revert lock * chore: lint fix * chore: refactor with scroll class, paddingBottom on DialogContent * fix: refactor scrollclassname for mobile vs desktop * chore: changeset * fix: paddingBottom logic when only padding is specified * fix: explicit overflowY * fix: overflowX hidden on mobile --------- Co-authored-by: Daniel Sinclair <[email protected]>
- Loading branch information
1 parent
ab3f517
commit 5b8d821
Showing
4 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rainbow-me/rainbowkit": patch | ||
--- | ||
|
||
Resolved an issue where dApps that supported many chains would cause an interface overflow on mobile. The Chains Modal is now scrollable. |
18 changes: 18 additions & 0 deletions
18
packages/rainbowkit/src/components/ChainModal/ChainModal.css.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const DesktopScrollClassName = style({ | ||
maxHeight: 454, | ||
overflowY: 'auto', | ||
}); | ||
|
||
export const MobileScrollClassName = style({ | ||
maxHeight: 454, | ||
overflowY: 'auto', | ||
overflowX: 'hidden', | ||
scrollbarWidth: 'none', | ||
selectors: { | ||
'&::-webkit-scrollbar': { | ||
display: 'none', | ||
}, | ||
}, | ||
}); |
This file contains 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
This file contains 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
5b8d821
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.
Successfully deployed to the following URLs:
rainbowkit-example – ./
rainbowkit-example.vercel.app
rainbowkit-example-git-main-rainbowdotme.vercel.app
rainbowkit-example-rainbowdotme.vercel.app
5b8d821
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.
Successfully deployed to the following URLs:
rainbowkit-site – ./
rainbowkit-site-rainbowdotme.vercel.app
rainbowkit.com
rainbowkit-site-git-main-rainbowdotme.vercel.app
www.rainbowkit.com
rainbowkit.vercel.app