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

Close BS-394
Related PR: https://github.com/toeverything/blocksuite/pull/7211
This commit is contained in:
L-Sun
2024-06-05 06:08:21 +00:00
parent c8242fc066
commit ecff441516

View File

@@ -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({