From dd47c14c654868da85a10947958f2672db13280c Mon Sep 17 00:00:00 2001 From: liuyi Date: Tue, 30 Jul 2024 13:47:17 +0800 Subject: [PATCH] fix(core): wrong padding position when ai panel is active (#7648) --- .../blocksuite/block-suite-editor/styles.css.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 0ce916d5f9..7ab69c67e1 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 @@ -10,6 +10,10 @@ export const affineDocViewport = style({ display: 'flex', flexDirection: 'column', paddingBottom: '100px', +}); + +export const docContainer = style({ + display: 'block', selectors: ['generating', 'finished', 'error'].reduce< NonNullable >((rules, state) => { @@ -20,10 +24,6 @@ export const affineDocViewport = style({ }, {}), }); -export const docContainer = style({ - display: 'block', -}); - export const docEditorGap = style({ display: 'block', width: '100%',