Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e1d997

Browse files
feat: 页面样式部分优化
1 parent b6f877c commit 6e1d997

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

‎src/layout/header/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const HeaderComponent = () => {
1212
return (
1313
<Header className="layout-header">
1414
{/* 面包屑 */}
15-
<Row justify={'space-between'} align="middle">
15+
<Row justify={'space-between'} align="middle"wrap={false}>
1616
<Col>
1717
<Space align="center" size={20}>
1818
<CollapseIcon></CollapseIcon>

‎src/layout/layout.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
}
5656

5757
.layout-container {
58+
min-width: 992px; // 暂时不适配移动端
59+
5860
.ant-layout {
5961
background-color: var(--bg-color);
6062
}

‎src/views/common/icons/index.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ const Icons = () => {
7070
{iconList.map((key) => (
7171
<Col
7272
onClick={() => copyText(key)}
73-
span={4}
73+
span={6}
74+
xl={4}
7475
key={key}
7576
className="demo-icon-box"
7677
>
@@ -86,7 +87,8 @@ const Icons = () => {
8687
onClick={() => copyText(item.key)}
8788
key={item.key}
8889
className="demo-icon-box"
89-
span={4}
90+
span={6}
91+
xl={4}
9092
>
9193
<Space direction="vertical" align="center" size={20}>
9294
{/* 两种写法都可以 */}
@@ -109,7 +111,8 @@ const Icons = () => {
109111
onClick={() => copyText(key)}
110112
key={key}
111113
className="demo-icon-box"
112-
span={4}
114+
span={6}
115+
xl={4}
113116
>
114117
<Space direction="vertical" align="center" size={20}>
115118
<IconFont className="demo-icon" type={key}></IconFont>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /