From beb76421598babea2823d2f095c312a8a075dce5 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Mon, 30 May 2022 17:44:52 +0800 Subject: [PATCH] client: fix layout --- .../client/src/components/document/collaboration/index.tsx | 2 +- .../client/src/components/document/reader/public/index.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/client/src/components/document/collaboration/index.tsx b/packages/client/src/components/document/collaboration/index.tsx index 1146672..7ff24a7 100644 --- a/packages/client/src/components/document/collaboration/index.tsx +++ b/packages/client/src/components/document/collaboration/index.tsx @@ -144,7 +144,7 @@ export const DocumentCollaboration: React.FC = ({ wikiId, documentId, di visible={visible} onVisibleChange={toggleVisible} trigger="click" - position={isMobile ? 'top' : 'bottomLeft'} + position={isMobile ? 'topRight' : 'bottomLeft'} style={{ width: 376, maxWidth: '80vw' }} content={ diff --git a/packages/client/src/components/document/reader/public/index.tsx b/packages/client/src/components/document/reader/public/index.tsx index 47d60bd..fee73be 100644 --- a/packages/client/src/components/document/reader/public/index.tsx +++ b/packages/client/src/components/document/reader/public/index.tsx @@ -118,10 +118,10 @@ export const DocumentPublicReader: React.FC = ({ documentId, hideLogo = mode="horizontal" header={ !hideLogo && !isMobile ? ( - <> + - + ) : null } footer={ @@ -137,7 +137,7 @@ export const DocumentPublicReader: React.FC = ({ documentId, hideLogo = error={error} loadingContent={} loading={true} />} normalContent={() => ( - + {data?.wiki?.name}