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(core): unexpected toast style in editor (#6924)

JimmFly419f1b34b377
diff --git a/packages/frontend/component/src/ui/scrollbar/index.css.ts b/packages/frontend/component/src/ui/scrollbar/index.css.ts
index a93d9c8d71..dcfb329834 100644
--- a/packages/frontend/component/src/ui/scrollbar/index.css.ts
+++ b/packages/frontend/component/src/ui/scrollbar/index.css.ts
@@ -27,7 +27,7 @@ export const scrollableViewport = style({
height: '100%',
width: '100%',
});
-globalStyle(`${scrollableViewport} > div`, {
+globalStyle(`${scrollableViewport} >:first-child`, {
display: 'contents !important',
});
export const scrollableContainer = style({