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
feat: header switcher
DarkSkyf57aaf7e808d
diff --git a/libs/components/layout/src/header/EditorBoardSwitcher/Switcher.tsx b/libs/components/layout/src/header/EditorBoardSwitcher/Switcher.tsxindex 3c350c2379..d373850446 100644--- a/libs/components/layout/src/header/EditorBoardSwitcher/Switcher.tsx+++ b/libs/components/layout/src/header/EditorBoardSwitcher/Switcher.tsx@@ -62,4 +62,5 @@ export const Switcher = () => {const StyledContainerForSwitcher = styled('div')({display: 'flex',alignItems: 'center',+ pointerEvents: 'all',});diff --git a/libs/components/layout/src/header/LayoutHeader.tsx b/libs/components/layout/src/header/LayoutHeader.tsxindex 85e715733b..604b6caa6d 100644--- a/libs/components/layout/src/header/LayoutHeader.tsx+++ b/libs/components/layout/src/header/LayoutHeader.tsx@@ -147,9 +147,10 @@ const StyledLogoIcon = styled(LogoIcon)(({ theme }) => {};});-const StyledContainerForEditorBoardSwitcher = styled('div')(({ theme }) => {- return {- position: 'absolute',- left: '50%',- };+const StyledContainerForEditorBoardSwitcher = styled('div')({+ width: '100%',+ position: 'absolute',+ display: 'flex',+ justifyContent: 'center',+ pointerEvents: 'none',});