Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(component): ui storybook's doc page can not scroll (#6909)

CatsJuice03104cd8b11e
diff --git a/packages/frontend/component/.storybook/preview.css.ts b/packages/frontend/component/.storybook/preview.css.ts
index 08ed839414..f83da41982 100644
--- a/packages/frontend/component/.storybook/preview.css.ts
+++ b/packages/frontend/component/.storybook/preview.css.ts
@@ -25,3 +25,7 @@ globalStyle('html[data-theme="dark"]', {
globalStyle('.docs-story', {
backgroundColor: 'var(--affine-background-primary-color)',
});
+
+globalStyle('body.sb-main-fullscreen', {
+ overflowY: 'auto',
+});