-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: setup custom viewports in storybook to match our breakpoints
- Loading branch information
1 parent
8e2ed87
commit 664e46b
Showing
3 changed files
with
60 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { breakpoints } from '@leather-wallet/tokens'; | ||
|
||
import { POPUP_HEIGHT, POPUP_WIDTH } from '../src/shared/constants'; | ||
|
||
export const customViewports = { | ||
extension: { | ||
name: 'Extension Popout', | ||
styles: { | ||
width: `${POPUP_WIDTH}px`, | ||
height: `${POPUP_HEIGHT}px`, | ||
}, | ||
}, | ||
sm: { | ||
name: 'sm', | ||
styles: { | ||
width: breakpoints.sm, | ||
height: '100%', | ||
}, | ||
}, | ||
md: { | ||
name: 'md', | ||
styles: { | ||
width: breakpoints.md, | ||
height: '100%', | ||
}, | ||
}, | ||
lg: { | ||
name: 'lg', | ||
styles: { | ||
width: breakpoints.lg, | ||
height: '100%', | ||
}, | ||
}, | ||
xl: { | ||
name: 'xl', | ||
styles: { | ||
width: breakpoints.xl, | ||
height: '100%', | ||
}, | ||
}, | ||
'2xl': { | ||
name: '2xl', | ||
styles: { | ||
width: breakpoints['2xl'], | ||
height: '100%', | ||
}, | ||
}, | ||
}; |