Skip to content

Commit 8aedb96

Browse files
remove overflow sroll to avoid ugly scrollbar space on stories
1 parent cae93b7 commit 8aedb96

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.storybook/preview.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,7 @@ const withThemeProvider = (Story, context) => {
4545
<QueryClientProvider client={new QueryClient()}>
4646
<CoreUiThemeProvider theme={theme}>
4747
{/* Wrapper to make the stories take the full screen but not in docs */}
48-
<div
49-
style={
50-
viewMode === 'story'
51-
? { height: 100 + 'vh', overflow: 'scroll' }
52-
: null
53-
}
54-
>
48+
<div style={viewMode === 'story' ? { height: 100 + 'vh' } : null}>
5549
<ToastProvider>
5650
<Wrapper style={{ backgroundColor: background }}>
5751
<Story {...context} />

stories/common.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const StyledWrapper = styled.div`
1010
background-color: ${theme[style?.backgroundColor || 'backgroundLevel3']};
1111
color: ${theme.textPrimary};
1212
box-sizing: border-box;
13-
overflow: scroll;
13+
overflow: auto;
1414
`;
1515
}}
1616
`;

stories/tablev2.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ export const TableWithSyncButton = {
651651
};
652652

653653
return (
654-
<Box>
654+
<Box width="500px" height="250px">
655655
<Title>Table with Sync Button</Title>
656656
<Box
657657
display="flex"

0 commit comments

Comments
 (0)