diff --git a/packages/frontend/component/src/components/affine-banner/index.css.ts b/packages/frontend/component/src/components/affine-banner/index.css.ts index a53bfe8936..e003a5ae8b 100644 --- a/packages/frontend/component/src/components/affine-banner/index.css.ts +++ b/packages/frontend/component/src/components/affine-banner/index.css.ts @@ -4,11 +4,13 @@ export const browserWarningStyle = style({ backgroundColor: cssVar('backgroundWarningColor'), color: cssVar('warningColor'), height: '36px', + width: '100%', fontSize: cssVar('fontSm'), display: 'flex', justifyContent: 'center', alignItems: 'center', - position: 'relative', + position: 'absolute', + zIndex: 1, }); export const closeButtonStyle = style({ width: '36px',