Skip to content

Commit

Permalink
fix(web): 去掉导航栏多余的下划线 (#1146)
Browse files Browse the repository at this point in the history
## 之前:导航栏有下划线

![image](https://github.com/PKUHPC/SCOW/assets/74037789/cc7e6bad-3c61-4da3-a5d8-0455f41273f4)
## 现在:去掉了多余的下划线

![image](https://github.com/PKUHPC/SCOW/assets/74037789/ca8f2978-bf73-4295-b415-c65e10ee524b)

### 应该是next版本更新导致的
  • Loading branch information
OYX-1 authored Feb 28, 2024
1 parent d3d891a commit 146e19f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/famous-pots-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/lib-web": patch
---

去掉导航栏多余的下划线
5 changes: 4 additions & 1 deletion libs/web/src/layouts/base/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export function createMenuItems(
icon: iconToNode(route.Icon),
key: route.path,
label: (
<Link href={route.clickToPath ?? route.path} {...route.openInNewPage ? { target: "_blank" } : {}}>
<Link
href={route.clickToPath ?? route.path} {...route.openInNewPage ? { target: "_blank" } : {}}
style={{ textDecoration:"none" }}
>
{route.text}
</Link>
),
Expand Down

0 comments on commit 146e19f

Please sign in to comment.