client: update tocs style

This commit is contained in:
fantasticit 2022-06-23 18:18:54 +08:00
parent 5f05715ed1
commit 860e2471e5
3 changed files with 332 additions and 314 deletions

View File

@ -3,6 +3,16 @@
height: 100%; height: 100%;
padding-top: 12px; padding-top: 12px;
overflow: auto; overflow: auto;
display: flex;
flex-direction: column;
overflow: hidden;
> main {
flex: 1;
overflow: auto;
}
} }
.titleWrap { .titleWrap {

View File

@ -48,6 +48,7 @@ export const WikiTocs: React.FC<IProps> = ({
return ( return (
<div className={styles.wrap}> <div className={styles.wrap}>
<header>
<DataRender <DataRender
loading={wikiLoading} loading={wikiLoading}
loadingContent={ loadingContent={
@ -225,7 +226,9 @@ export const WikiTocs: React.FC<IProps> = ({
</div> </div>
)} )}
/> />
</header>
<main>
<div className={styles.treeWrap}> <div className={styles.treeWrap}>
<DataRender <DataRender
loading={starDocumentsLoading} loading={starDocumentsLoading}
@ -294,6 +297,7 @@ export const WikiTocs: React.FC<IProps> = ({
)} )}
/> />
</div> </div>
</main>
</div> </div>
); );
}; };

View File

@ -43,6 +43,7 @@ export const WikiPublicTocs: React.FC<IProps> = ({
return ( return (
<div className={styles.wrap}> <div className={styles.wrap}>
<header>
<div className={styles.navItemWrap}> <div className={styles.navItemWrap}>
<div className={styles.navItem}> <div className={styles.navItem}>
<Space> <Space>
@ -105,8 +106,10 @@ export const WikiPublicTocs: React.FC<IProps> = ({
}} }}
isActive={pathname === '/share/wiki/[wikiId]'} isActive={pathname === '/share/wiki/[wikiId]'}
/> />
</header>
<div className={styles.treeWrap} style={{ marginTop: 12 }}> <main>
<div className={styles.treeWrap}>
<DataRender <DataRender
loading={tocsLoading} loading={tocsLoading}
loadingContent={ loadingContent={
@ -139,6 +142,7 @@ export const WikiPublicTocs: React.FC<IProps> = ({
)} )}
/> />
</div> </div>
</main>
</div> </div>
); );
}; };