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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(core): modal height issue (#8710)
pengx17584d095895d7
diff --git a/packages/frontend/core/src/modules/peek-view/view/modal-container.css.ts b/packages/frontend/core/src/modules/peek-view/view/modal-container.css.tsindex 09d336fbd9..1d32c590ef 100644--- a/packages/frontend/core/src/modules/peek-view/view/modal-container.css.ts+++ b/packages/frontend/core/src/modules/peek-view/view/modal-container.css.ts@@ -30,15 +30,21 @@ export const modalContentContainer = style({alignItems: 'center',justifyContent: 'center',borderRadius: 12,- selectors: {- [`${modalContentWrapper}:is([data-mode="max"], [data-mode="fit"], [data-mobile]) &`]:- {- height: '60%',- width: 'calc(100% - 32px)',- paddingRight: 0,- paddingBottom: 32,- alignSelf: 'flex-end',+ '@media': {+ // for small screen+ 'screen and (width <= 640px)': {+ selectors: {+ [`${modalContentWrapper}:is([data-mode="max"], [data-mode="fit"]) &`]: {+ height: '60%',+ width: 'calc(100% - 32px)',+ paddingRight: 0,+ paddingBottom: 32,+ alignSelf: 'flex-end',+ },},+ },+ },+ selectors: {[`${modalContentWrapper}[data-mode="max"] &`]: {width: 'calc(100% - 64px)',height: 'calc(100% - 64px)',