Skip to content

Commit 9c88c11

Browse files
author
wutali
committed
Fix mobile layout
1 parent 531a4c9 commit 9c88c11

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/layouts/index.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ export default function Index({ title, date, tags }: Props) {
4040
<style jsx>
4141
{`
4242
.container {
43-
display: flex;
44-
flex-direction: column;
43+
display: block;
4544
max-width: 36rem;
4645
width: 100%;
4746
margin: 0 auto;
@@ -68,6 +67,13 @@ export default function Index({ title, date, tags }: Props) {
6867
margin-top: 3rem;
6968
text-align: center;
7069
}
70+
71+
@media (min-width: 769px) {
72+
.container {
73+
display: flex;
74+
flex-direction: column;
75+
}
76+
}
7177
`}
7278
</style>
7379
<style global jsx>

0 commit comments

Comments
 (0)