mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: ui bugs in public workspace (#1362)
This commit is contained in:
@@ -56,7 +56,7 @@ export const BlockSuiteEditorHeader: React.FC<BlockSuiteEditorHeaderProps> = ({
|
||||
}
|
||||
>
|
||||
{children}
|
||||
{title && (
|
||||
{title && !isPublic && (
|
||||
<StyledTitle
|
||||
data-tauri-drag-region
|
||||
onMouseEnter={() => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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}`}
|
||||
|
||||
Reference in New Issue
Block a user