Skip to content

Commit

Permalink
fix: 分类导航栏显示时,分类过长导致的排版错乱
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Sep 17, 2022
1 parent d9844a7 commit f42469d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/website/components/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default function (props: {
</div>
</div>
{Boolean(props.categories.length) && props.showSubMenu == "true" && (
<div className="h-10 items-center hidden md:flex border-b border-gray-200 dark:border-nav-dark">
<div className="h-10 items-center hidden md:flex border-b border-gray-200 dark:border-nav-dark overflow-hidden">
<div
className="mx-5"
style={{ width: 52 + props.subMenuOffset }}
Expand Down
3 changes: 3 additions & 0 deletions packages/website/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,6 @@ body #wl-edit {
left: 0;
right: 0;
}
#nav li a {
word-break: keep-all;
}

0 comments on commit f42469d

Please sign in to comment.