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: padding in the Switch button of Page/Edgeless (#3542)
Pratik Kumar3282344d4a29
diff --git a/apps/core/src/components/blocksuite/workspace-header/editor-mode-switch/style.ts b/apps/core/src/components/blocksuite/workspace-header/editor-mode-switch/style.tsindex 764ffe4705..75ea1e17c2 100644--- a/apps/core/src/components/blocksuite/workspace-header/editor-mode-switch/style.ts+++ b/apps/core/src/components/blocksuite/workspace-header/editor-mode-switch/style.ts@@ -5,14 +5,15 @@ export const StyledEditorModeSwitch = styled('div')<{showAlone?: boolean;}>(({ switchLeft, showAlone }) => {return {- width: showAlone ? '40px' : '78px',+ maxWidth: showAlone ? '40px' : '70px',+ gap: '8px',height: '32px',background: showAlone? 'transparent': 'var(--affine-background-secondary-color)',borderRadius: '12px',...displayFlex('space-between', 'center'),- padding: '0 8px',+ padding: '4px 4px',position: 'relative','::after': {@@ -25,7 +26,7 @@ export const StyledEditorModeSwitch = styled('div')<{borderRadius: '8px',zIndex: 1,position: 'absolute',- transform: `translateX(${switchLeft ? '0' : '38px'})`,+ transform: `translateX(${switchLeft ? '0' : '32px'})`,transition: 'all .15s',},};