Skip to content

Commit

Permalink
chore: adjust overview width
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Oct 27, 2023
1 parent 5a985e5 commit 01df209
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ export function DocLayout(props: DocLayoutProps) {
// if in iframe, default value is false
const defaultHasAside =
typeof window === 'undefined' ? true : window.top === window.self;
return frontmatter?.outline ?? themeConfig?.outline ?? defaultHasAside;
return (
(frontmatter?.outline ?? themeConfig?.outline ?? defaultHasAside) &&
!isOverviewPage
);
};
const [hasAside, setHasAside] = useState(getHasAside());

Expand Down

0 comments on commit 01df209

Please sign in to comment.