Skip to content

Commit

Permalink
fix: 修复文档/RN组件导航栏遮挡文档内容问题
Browse files Browse the repository at this point in the history
  • Loading branch information
panbibi committed Mar 31, 2023
1 parent 0653707 commit a16b5a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions website/src/component/Container/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
position: absolute;
left: 270px;
top: 60px;
display: flex;
flex-wrap: wrap;
}

.home {
width: 100%;
}
2 changes: 1 addition & 1 deletion website/src/component/Container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function Container(props: ContainerProps) {
<Header enableStyle={/\/(team)/.test(path)} showBorder={/\/(home)/.test(path)} path={path} />
<div className={styles.warpper}>
{data && data.length > 0 && <SubMenus data={data} />}
<div className={styles.content} style={{ flex: 1, overflow: 'hidden' }}>
<div className={data && data.length > 0 ? styles.content : styles.home} style={{ flex: 1, overflow: 'hidden' }}>
<Outlet />
</div>
</div>
Expand Down

0 comments on commit a16b5a2

Please sign in to comment.