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(mobile): header will be clipped when modal opened and page scrolled (#8079)

CatsJuice51bc40d2a828
diff --git a/packages/frontend/mobile/src/styles/mobile.css.ts b/packages/frontend/mobile/src/styles/mobile.css.ts
index 4d87538904..d7f315ed91 100644
--- a/packages/frontend/mobile/src/styles/mobile.css.ts
+++ b/packages/frontend/mobile/src/styles/mobile.css.ts
@@ -21,3 +21,6 @@ globalStyle('html', {
overflowY: 'auto',
background: cssVarV2('layer/background/secondary'),
});
+globalStyle('body[data-scroll-locked][style]', {
+ overflow: 'clip !important',
+});
diff --git a/packages/frontend/mobile/src/views/home-header/styles.css.ts b/packages/frontend/mobile/src/views/home-header/styles.css.ts
index f52c2c3e6a..19f1c3fb16 100644
--- a/packages/frontend/mobile/src/views/home-header/styles.css.ts
+++ b/packages/frontend/mobile/src/views/home-header/styles.css.ts
@@ -48,6 +48,8 @@ export const wsSelectorWrapper = style({
flex: 1,
height: wsSelectorHeight,
padding: '0 10px 0 16px',
+ display: 'flex',
+ alignItems: 'center',
});
export const settingWrapper = style({