Skip to content

Commit

Permalink
pkp/pkp-lib#9527 Update viewports for long modals
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Jan 11, 2024
1 parent 0735438 commit 0c52b58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .storybook/modes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export const allModes = {
},
// for snapshotting scrollable areas with all content, like modals
desktopLargeHeight: {
theme: 'ltr',
viewport: 'largeHeight',
},
'desktopLargeHeight rtl': {
viewport: 'largeHeight',
theme: 'rtl',
},
};
2 changes: 1 addition & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const preview = {
/** For scrollable scenarios */
largeHeight: {
name: 'Large',
styles: {width: '1024px', height: '1500px'},
styles: {width: '1280px', height: '1500px'},
},
},
},
Expand Down
1 change: 1 addition & 0 deletions src/components/Modal/SideModal.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ export const WithTabs = {
chromatic: {
modes: {
desktop: {disable: true},
'desktop rtl': {disable: true},
desktopLargeHeight: allModes['desktopLargeHeight'],
},
},
Expand Down

0 comments on commit 0c52b58

Please sign in to comment.