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: flickering animation on switching between Edgeless and Paper mode (#1151)

zqran41aec24f9b89
diff --git a/apps/web/src/components/editor-mode-switch/style.ts b/apps/web/src/components/editor-mode-switch/style.ts
index cee75ce544..cb22f91c1e 100644
--- a/apps/web/src/components/editor-mode-switch/style.ts
+++ b/apps/web/src/components/editor-mode-switch/style.ts
@@ -136,6 +136,7 @@ export const StyledLabel = styled('div')<{
transition: `transform ${ANIMATE_DURATION}ms`,
fontWeight: 'normal',
overflow: 'hidden',
+ whiteSpace: 'nowrap',
...shrinkStyle,
};
});