Skip to content

Commit 9b0ddbe

Browse files
committed
fix: 贡献者 样式调整
1 parent de38e03 commit 9b0ddbe

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

pages/components/contributors/index.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ const Contributors: FC<IContributorsProps> = ({}) => {
1919
<Descriptions.Item itemKey="Download">1000+</Descriptions.Item>
2020
<Descriptions.Item itemKey="Contributors">30+</Descriptions.Item>
2121
</Descriptions>
22-
<Row gutter={80}>
23-
<Col xs={24} sm={24} md={12} lg={12} xl={12}>
24-
<Image src={ContributorForQQ} alt="" width={90} height={90}/>
25-
</Col>
26-
<Col xs={24} sm={24} md={12} lg={12} xl={12}>
27-
<Image src={ContributorForWechat} alt="" width={90} height={90}/>
28-
</Col>
29-
</Row>
22+
<div className={styles.imageBox}>
23+
<Row type="flex" gutter={80}>
24+
<Col xs={24} sm={24} md={12} lg={12} xl={12}>
25+
<Image src={ContributorForQQ} alt="" width={90} height={90}/>
26+
</Col>
27+
<Col xs={24} sm={24} md={12} lg={12} xl={12}>
28+
<Image src={ContributorForWechat} alt="" width={90} height={90}/>
29+
</Col>
30+
</Row>
31+
</div>
32+
3033
</div>
3134
);
3235
};

pages/components/contributors/styles.module.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
flex-direction: column;
66
width: 100%;
77
padding: 10rem 8rem;
8+
.imageBox {
9+
width: 100%;
10+
margin-top: 3rem;
11+
}
812
.title {
913
font-size: 2rem;
1014
color: var(--semi-color-text-0);
@@ -24,23 +28,21 @@
2428
}
2529
img {
2630
width: 100%;
27-
height: 23rem;
31+
height: 25rem;
2832
border-radius: 8px;
2933
}
3034
:global {
3135
.semi-descriptions {
3236
display: flex;
3337
width: 100%;
3438
align-items: center;
35-
padding: 0 20px;
39+
padding: 0 -20px;
3640
}
3741
.semi-row {
38-
width: 100%;
3942
margin-top: 3rem;
4043
}
4144
.semi-descriptions table {
4245
width: 100%;
43-
padding: 20px;
4446
}
4547
.semi-descriptions-double tbody {
4648
width: 100%;

0 commit comments

Comments
 (0)