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} {children}
{title && ( {title && !isPublic && (
<StyledTitle <StyledTitle
data-tauri-drag-region data-tauri-drag-region
onMouseEnter={() => { onMouseEnter={() => {

View File

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

View File

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