fix: issues (#1460)

This commit is contained in:
Qi
2023-03-09 18:15:26 +08:00
committed by GitHub
parent ca603336b2
commit 1a7a7ab6ba
3 changed files with 6 additions and 3 deletions

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={() => {