fix: ui bugs in public workspace (#1362)

This commit is contained in:
Himself65
2023-03-06 18:29:10 -06:00
committed by GitHub
parent 76a83fd60b
commit 7ae8cfc0f5
3 changed files with 7 additions and 11 deletions

View File

@@ -56,7 +56,7 @@ export const BlockSuiteEditorHeader: React.FC<BlockSuiteEditorHeaderProps> = ({
}
>
{children}
{title && (
{title && !isPublic && (
<StyledTitle
data-tauri-drag-region
onMouseEnter={() => {

View File

@@ -197,9 +197,11 @@ export const WorkspaceLayoutInner: React.FC<React.PropsWithChildren> = ({
<div id="toolWrapper" style={{ marginBottom: '12px' }}>
{/* Slot for block hub */}
</div>
<HelpIsland
showList={router.query.pageId ? undefined : ['contact']}
/>
{!isPublicWorkspace && (
<HelpIsland
showList={router.query.pageId ? undefined : ['contact']}
/>
)}
</StyledToolWrapper>
</StyledWrapper>
</StyledPage>

View File

@@ -86,13 +86,7 @@ const PublicWorkspaceDetailPageInner: React.FC<{
editor.readonly = true;
}}
header={
<NavContainer
// fixme(himself65): this is a hack to make the breadcrumbs work
style={{
position: 'absolute',
left: '0',
}}
>
<NavContainer>
<Breadcrumbs>
<StyledBreadcrumbs
href={`/public-workspace/${blockSuiteWorkspace.room}`}