mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
fix: issues (#1460)
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { toast } from '@affine/component';
|
||||||
import { EdgelessIcon, PaperIcon } from '@blocksuite/icons';
|
import { EdgelessIcon, PaperIcon } from '@blocksuite/icons';
|
||||||
import { assertExists } from '@blocksuite/store';
|
import { assertExists } from '@blocksuite/store';
|
||||||
import { CSSProperties } from 'react';
|
import { CSSProperties } from 'react';
|
||||||
@@ -40,6 +41,7 @@ export const EditorModeSwitch = ({
|
|||||||
hide={trash && mode !== 'page'}
|
hide={trash && mode !== 'page'}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPageMeta(pageId, { mode: 'page' });
|
setPageMeta(pageId, { mode: 'page' });
|
||||||
|
toast('Page mode');
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<PaperIcon />
|
<PaperIcon />
|
||||||
@@ -50,6 +52,7 @@ export const EditorModeSwitch = ({
|
|||||||
hide={trash && mode !== 'edgeless'}
|
hide={trash && mode !== 'edgeless'}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPageMeta(pageId, { mode: 'edgeless' });
|
setPageMeta(pageId, { mode: 'edgeless' });
|
||||||
|
toast('Edgeless mode');
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<EdgelessIcon />
|
<EdgelessIcon />
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ export const SyncUser = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip content={t('AFFiNE Cloud')} placement="bottom-end">
|
<Tooltip content={t('Synced with AFFiNE Cloud')} placement="bottom-end">
|
||||||
<IconWrapper>
|
<IconWrapper>
|
||||||
<CloudWorkspaceIcon />
|
<CloudWorkspaceIcon />
|
||||||
</IconWrapper>
|
</IconWrapper>
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export const BlockSuiteEditorHeader: React.FC<BlockSuiteEditorHeaderProps> = ({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
{title && !isPublic && (
|
{!isPublic && (
|
||||||
<StyledTitle data-tauri-drag-region>
|
<StyledTitle data-tauri-drag-region>
|
||||||
<StyledTitleWrapper>
|
<StyledTitleWrapper>
|
||||||
<StyledSwitchWrapper>
|
<StyledSwitchWrapper>
|
||||||
@@ -67,7 +67,7 @@ export const BlockSuiteEditorHeader: React.FC<BlockSuiteEditorHeaderProps> = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</StyledSwitchWrapper>
|
</StyledSwitchWrapper>
|
||||||
<Content ellipsis={true}>{title}</Content>
|
<Content ellipsis={true}>{title || 'Untitled'}</Content>
|
||||||
<StyledSearchArrowWrapper>
|
<StyledSearchArrowWrapper>
|
||||||
<QuickSearchButton
|
<QuickSearchButton
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user