client: fix layout

pull/64/head
fantasticit 2022-05-30 17:44:52 +08:00
parent c4e2a82493
commit beb7642159
2 changed files with 4 additions and 4 deletions

View File

@ -144,7 +144,7 @@ export const DocumentCollaboration: React.FC<IProps> = ({ wikiId, documentId, di
visible={visible}
onVisibleChange={toggleVisible}
trigger="click"
position={isMobile ? 'top' : 'bottomLeft'}
position={isMobile ? 'topRight' : 'bottomLeft'}
style={{ width: 376, maxWidth: '80vw' }}
content={
<Tabs type="line">

View File

@ -118,10 +118,10 @@ export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo =
mode="horizontal"
header={
!hideLogo && !isMobile ? (
<>
<Space style={{ marginRight: 12 }}>
<LogoImage />
<LogoText />
</>
</Space>
) : null
}
footer={
@ -137,7 +137,7 @@ export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo =
error={error}
loadingContent={<Skeleton active placeholder={<Skeleton.Title style={{ width: 80 }} />} loading={true} />}
normalContent={() => (
<Breadcrumb>
<Breadcrumb >
<Breadcrumb.Item>
<Link href="/share/wiki/[wikiId]" as={`/share/wiki/${data.wikiId}`}>
<a>{data?.wiki?.name}</a>