fix: issues (#1460)

This commit is contained in:
Qi 2023-03-09 18:15:26 +08:00 committed by GitHub
parent ca603336b2
commit 1a7a7ab6ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -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');
}}
>
<PaperIcon />
@ -50,6 +52,7 @@ export const EditorModeSwitch = ({
hide={trash && mode !== 'edgeless'}
onClick={() => {
setPageMeta(pageId, { mode: 'edgeless' });
toast('Edgeless mode');
}}
>
<EdgelessIcon />

View File

@ -142,7 +142,7 @@ export const SyncUser = () => {
}
return (
<Tooltip content={t('AFFiNE Cloud')} placement="bottom-end">
<Tooltip content={t('Synced with AFFiNE Cloud')} placement="bottom-end">
<IconWrapper>
<CloudWorkspaceIcon />
</IconWrapper>

View File

@ -55,7 +55,7 @@ export const BlockSuiteEditorHeader: React.FC<BlockSuiteEditorHeaderProps> = ({
}
>
{children}
{title && !isPublic && (
{!isPublic && (
<StyledTitle data-tauri-drag-region>
<StyledTitleWrapper>
<StyledSwitchWrapper>
@ -67,7 +67,7 @@ export const BlockSuiteEditorHeader: React.FC<BlockSuiteEditorHeaderProps> = ({
}}
/>
</StyledSwitchWrapper>
<Content ellipsis={true}>{title}</Content>
<Content ellipsis={true}>{title || 'Untitled'}</Content>
<StyledSearchArrowWrapper>
<QuickSearchButton
onClick={() => {