Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: ui bugs in public workspace (#1362)

Himself657ae8cfc0f575
diff --git a/apps/web/src/components/blocksuite/header/index.tsx b/apps/web/src/components/blocksuite/header/index.tsx
index d6a56fdfb8..0ee4f3806d 100644
--- a/apps/web/src/components/blocksuite/header/index.tsx
+++ b/apps/web/src/components/blocksuite/header/index.tsx
@@ -56,7 +56,7 @@ export const BlockSuiteEditorHeader: React.FC<BlockSuiteEditorHeaderProps> = ({
}
>
{children}
- {title && (
+ {title && !isPublic && (
<StyledTitle
data-tauri-drag-region
onMouseEnter={() => {
diff --git a/apps/web/src/layouts/index.tsx b/apps/web/src/layouts/index.tsx
index 7830f7ab8c..e5c219bd6e 100644
--- a/apps/web/src/layouts/index.tsx
+++ b/apps/web/src/layouts/index.tsx
@@ -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>
diff --git a/apps/web/src/pages/public-workspace/[workspaceId]/[pageId].tsx b/apps/web/src/pages/public-workspace/[workspaceId]/[pageId].tsx
index 5fe9c22c8c..bcc430adb2 100644
--- a/apps/web/src/pages/public-workspace/[workspaceId]/[pageId].tsx
+++ b/apps/web/src/pages/public-workspace/[workspaceId]/[pageId].tsx
@@ -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}`}