From 41aec24f9b89f281dc47f1f433c733cbf94299e5 Mon Sep 17 00:00:00 2001 From: zqran Date: Tue, 21 Feb 2023 15:52:07 +0800 Subject: [PATCH] fix: flickering animation on switching between Edgeless and Paper mode (#1151) --- apps/web/src/components/editor-mode-switch/style.ts | 1 + 1 file changed, 1 insertion(+) 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, }; });