Skip to content

Commit c77020c

Browse files
committed
Fix offset in Display component in storybook
1 parent 909447e commit c77020c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stories/getStory.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ export function getStoryFactory<Props extends Record<string, any>>(params: {
2828

2929
const Component: any = Object.entries(wrappedComponent).map(([, component]) => component)[0];
3030

31+
document.documentElement.style.overflowY = "scroll";
32+
3133
const Template: Story<
3234
Props & {
3335
darkMode: boolean;

0 commit comments

Comments
 (0)