Skip to content

Commit

Permalink
fix(web): 修复 UI 拓展自定义图标大小与导航栏原有图标大小不一致的问题 (#1396)
Browse files Browse the repository at this point in the history
原本UI拓展的图标大小固定为14*14,修改后与导航栏其它图标大小保持一致
## 修改前:
- 右侧:<img width="114" alt="1723604959069"
src="https://github.com/user-attachments/assets/5b7feb70-d994-4451-ac40-13cdb5c03516">

- 左侧:<img width="135" alt="1723604977591"
src="https://github.com/user-attachments/assets/138bf6d7-3695-4172-b0ce-06bef346a4c5">

## 修改后:
- 右侧:<img width="126" alt="1723605005419"
src="https://github.com/user-attachments/assets/1dc2be46-f55a-4330-9c01-f45e2bea928a">

- 左侧:<img width="226" alt="1723615886352"
src="https://github.com/user-attachments/assets/0782aab4-77fa-4841-9268-8867ee25f319">
  • Loading branch information
tongchong authored Aug 14, 2024
1 parent 5ba5ebb commit b2ee159
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/early-donkeys-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/lib-web": patch
---

修复 UI 拓展自定义图标大小与导航栏原有图标大小不一致的问题
4 changes: 4 additions & 0 deletions libs/web/src/layouts/base/header/BigScreenMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ const Container = styled.div`
font-size:1.42em;
}
.anticon img{
font-size:1.42em;
}
.ant-menu-title-content{
position:relative;
bottom:0.2em;
Expand Down
4 changes: 2 additions & 2 deletions libs/web/src/layouts/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export function NavIcon({ src, alt = "" }: Props) {
alt={altName}
style={{
...style,
width: "1em",
height: "1em",
filter: dark ? "invert(100%)" : "none",
}}
width={14}
height={14}
className={className}
/>
)}
Expand Down

0 comments on commit b2ee159

Please sign in to comment.