mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
fix: ui bugs in public workspace (#1362)
This commit is contained in:
@@ -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={() => {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user