mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-23 05:33:08 +03:00
fix: issues (#1460)
This commit is contained in:
parent
ca603336b2
commit
1a7a7ab6ba
@ -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 />
|
||||
|
@ -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>
|
||||
|
@ -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={() => {
|
||||
|
Loading…
Reference in New Issue
Block a user