Skip to content

Commit 5952e64

Browse files
panbibixingyuefeng
authored andcommitted
fix: 修复文档/RN组件导航栏遮挡文档内容问题
1 parent 8a4d276 commit 5952e64

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

website/src/component/Container/index.module.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
position: absolute;
99
left: 270px;
1010
top: 60px;
11-
display: flex;
12-
flex-wrap: wrap;
11+
}
12+
13+
.home {
14+
width: 100%;
1315
}

website/src/component/Container/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function Container(props: ContainerProps) {
2525
<Header enableStyle={/\/(team)/.test(path)} showBorder={/\/(home)/.test(path)} path={path} />
2626
<div className={styles.warpper}>
2727
{data && data.length > 0 && <SubMenus data={data} />}
28-
<div className={styles.content} style={{ flex: 1, overflow: 'hidden' }}>
28+
<div className={data && data.length > 0 ? styles.content : styles.home} style={{ flex: 1, overflow: 'hidden' }}>
2929
<Outlet />
3030
</div>
3131
</div>

0 commit comments

Comments
 (0)