Skip to content

Commit 3e47c32

Browse files
author
Shuaige1234567
committed
修改登录逻辑
1 parent 4911b45 commit 3e47c32

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

frontend/src/components/sider.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ const items: MenuItemType[] = [
3535

3636
getItem("Home", '1', <HomeOutlined style={{
3737
color: '#D3D540',
38-
fontSize: '30px'
38+
fontSize: '20px'
3939
}}/>),
4040
getItem("Explore", '2', <SearchOutlined style={{
4141
color: '#D3D540',
42-
fontSize: '30px'
42+
fontSize: '20px'
4343
}}/>),
4444
getItem("Profile", '3', <ProfileOutlined style={{
4545
color: '#D3D540',
46-
fontSize: '30px'
46+
fontSize: '20px'
4747
}}/>),
4848
getItem("Settings", '4', <SettingOutlined style={{
4949
color: '#D3D540',
50-
fontSize: '30px'
50+
fontSize: '20px'
5151
}}/>),
5252

5353
];
@@ -93,6 +93,7 @@ export default function Sider() {
9393
</h1>
9494

9595
<Menu
96+
className={"sider"}
9697
mode="vertical"
9798
items={items}
9899
style={{

frontend/src/index.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
body {
2-
margin: 0;
3-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
2+
margin: 0;
3+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
44
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
55
sans-serif;
6-
-webkit-font-smoothing: antialiased;
7-
-moz-osx-font-smoothing: grayscale;
6+
-webkit-font-smoothing: antialiased;
7+
-moz-osx-font-smoothing: grayscale;
88
}
99

1010
code {
11-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
11+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
1212
monospace;
1313
}
14+
15+
.sider .ant-menu-item {
16+
display: flex;
17+
align-items: center;
18+
}

0 commit comments

Comments
 (0)