client: fix reader style

This commit is contained in:
fantasticit 2022-05-25 23:16:48 +08:00
parent 75e3c8dbe4
commit 3b4539a3c7
2 changed files with 3 additions and 9 deletions

View File

@ -38,7 +38,7 @@ interface IProps {
hideLogo?: boolean;
}
export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo = true }) => {
export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo = false }) => {
const $form = useRef<FormApi>();
const mounted = useMount()
const { data, loading, error, query } = usePublicDocumentDetail(documentId);
@ -120,7 +120,7 @@ export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo =
/>
</div>
)
}, [error, data, mounted])
}, [error, data, mounted, editorWrapClassNames, fontSize])
return (
<Layout className={styles.wrap}>
@ -128,7 +128,7 @@ export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo =
<Nav
mode="horizontal"
header={
!hideLogo ? (
!hideLogo && !isMobile ? (
<>
<LogoImage />
<LogoText />

View File

@ -14,9 +14,3 @@
font-weight: 500;
}
}
@media (max-width: 830px) {
.wrap {
display: none !important;
}
}