Skip to content

Commit 4951caa

Browse files
committed
移动设备优化
1 parent ddbd7d7 commit 4951caa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/pages/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function HomepageHeader() {
2626
to="/docs/intro">
2727
快速上手
2828
</Link>
29-
<Link className="button button--secondary button--lg margin-left--sm"
29+
<div className='margin--sm' />
30+
<Link className="button button--secondary button--lg"
3031
href="http://reactgo.lucky-byte.net:23890" target='_blank'>
3132
演示
3233
<span style={{ fontSize: 'small', marginLeft: 10 }}>

src/pages/index.module.css

+7
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@
5656
align-items: center;
5757
}
5858

59+
@media screen and (max-width: 400px) {
60+
.buttons {
61+
flex-direction: column;
62+
align-items: stretch;
63+
}
64+
}
65+
5966
p.secondary {
6067
color: #ff0;
6168
font-size: 0.9rem;

0 commit comments

Comments
 (0)