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.

chore(core): add padding when ai-panel is opened in page mode (#7151)

L-Sunecff441516f2
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/styles.css.ts b/packages/frontend/core/src/components/blocksuite/block-suite-editor/styles.css.ts
index 7113273f81..0ce916d5f9 100644
--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/styles.css.ts
+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/styles.css.ts
@@ -1,5 +1,6 @@
import { cssVar } from '@toeverything/theme';
-import { style } from '@vanilla-extract/css';
+import { style, type StyleRule } from '@vanilla-extract/css';
+
export const docEditorRoot = style({
display: 'block',
background: cssVar('backgroundPrimaryColor'),
@@ -9,6 +10,14 @@ export const affineDocViewport = style({
display: 'flex',
flexDirection: 'column',
paddingBottom: '100px',
+ selectors: ['generating', 'finished', 'error'].reduce<
+ NonNullable<StyleRule['selectors']>
+ >((rules, state) => {
+ rules[`&:has(affine-ai-panel-widget[data-state='${state}'])`] = {
+ paddingBottom: '980px',
+ };
+ return rules;
+ }, {}),
});
export const docContainer = style({