diff --git a/apps/web/src/components/blocksuite/header/editor-mode-switch/index.tsx b/apps/web/src/components/blocksuite/header/editor-mode-switch/index.tsx index ad16c913b0..4e62239a4a 100644 --- a/apps/web/src/components/blocksuite/header/editor-mode-switch/index.tsx +++ b/apps/web/src/components/blocksuite/header/editor-mode-switch/index.tsx @@ -1,3 +1,4 @@ +import { toast } from '@affine/component'; import { EdgelessIcon, PaperIcon } from '@blocksuite/icons'; import { assertExists } from '@blocksuite/store'; import { CSSProperties } from 'react'; @@ -40,6 +41,7 @@ export const EditorModeSwitch = ({ hide={trash && mode !== 'page'} onClick={() => { setPageMeta(pageId, { mode: 'page' }); + toast('Page mode'); }} > @@ -50,6 +52,7 @@ export const EditorModeSwitch = ({ hide={trash && mode !== 'edgeless'} onClick={() => { setPageMeta(pageId, { mode: 'edgeless' }); + toast('Edgeless mode'); }} > diff --git a/apps/web/src/components/blocksuite/header/header-right-items/SyncUser.tsx b/apps/web/src/components/blocksuite/header/header-right-items/SyncUser.tsx index aaec733412..1af8584cca 100644 --- a/apps/web/src/components/blocksuite/header/header-right-items/SyncUser.tsx +++ b/apps/web/src/components/blocksuite/header/header-right-items/SyncUser.tsx @@ -142,7 +142,7 @@ export const SyncUser = () => { } return ( - + diff --git a/apps/web/src/components/blocksuite/header/index.tsx b/apps/web/src/components/blocksuite/header/index.tsx index cbe699926f..ecdc0c87d2 100644 --- a/apps/web/src/components/blocksuite/header/index.tsx +++ b/apps/web/src/components/blocksuite/header/index.tsx @@ -55,7 +55,7 @@ export const BlockSuiteEditorHeader: React.FC = ({ } > {children} - {title && !isPublic && ( + {!isPublic && ( @@ -67,7 +67,7 @@ export const BlockSuiteEditorHeader: React.FC = ({ }} /> - {title} + {title || 'Untitled'} {