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): workaround for tag modal blink (#8985)

pengx17af81c95b851b
diff --git a/packages/frontend/component/src/ui/modal/styles.css.ts b/packages/frontend/component/src/ui/modal/styles.css.ts
index 88d8c03c87..f64c2bbf4a 100644
--- a/packages/frontend/component/src/ui/modal/styles.css.ts
+++ b/packages/frontend/component/src/ui/modal/styles.css.ts
@@ -173,12 +173,12 @@ export const modalContent = style({
selectors: {
'[data-full-screen="true"] &': {
vars: {
- [widthVar]: '100vw',
- [heightVar]: '100vh',
- [minHeightVar]: '100vh',
+ [widthVar]: '100dvw',
+ [heightVar]: '100dvh',
+ [minHeightVar]: '100dvh',
},
- maxWidth: '100vw',
- maxHeight: '100vh',
+ maxWidth: '100dvw',
+ maxHeight: '100dvh',
borderRadius: 0,
},
},