mirror of https://github.com/fantasticit/think.git
client: fix reader style
This commit is contained in:
parent
75e3c8dbe4
commit
3b4539a3c7
|
@ -38,7 +38,7 @@ interface IProps {
|
||||||
hideLogo?: boolean;
|
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 $form = useRef<FormApi>();
|
||||||
const mounted = useMount()
|
const mounted = useMount()
|
||||||
const { data, loading, error, query } = usePublicDocumentDetail(documentId);
|
const { data, loading, error, query } = usePublicDocumentDetail(documentId);
|
||||||
|
@ -120,7 +120,7 @@ export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo =
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}, [error, data, mounted])
|
}, [error, data, mounted, editorWrapClassNames, fontSize])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout className={styles.wrap}>
|
<Layout className={styles.wrap}>
|
||||||
|
@ -128,7 +128,7 @@ export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo =
|
||||||
<Nav
|
<Nav
|
||||||
mode="horizontal"
|
mode="horizontal"
|
||||||
header={
|
header={
|
||||||
!hideLogo ? (
|
!hideLogo && !isMobile ? (
|
||||||
<>
|
<>
|
||||||
<LogoImage />
|
<LogoImage />
|
||||||
<LogoText />
|
<LogoText />
|
||||||
|
|
|
@ -14,9 +14,3 @@
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 830px) {
|
|
||||||
.wrap {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue