Skip to content

Commit 39f0a05

Browse files
committedDec 29, 2024··
fix post descs
1 parent 425c2c5 commit 39f0a05

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed
 

‎src/components/Post.astro

+12-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { formatDate } from "../date";
2828
{formatDate(post.data.pubDate)}
2929
</p>
3030

31-
<p>
31+
<p class="post-summary">
3232
{post.data.summary}
3333
</p>
3434
</a>
@@ -38,9 +38,13 @@ import { formatDate } from "../date";
3838
.post-container {
3939
display: grid;
4040
grid-template-rows: auto auto;
41-
grid-template-columns: auto max-content;
41+
grid-template-columns: auto;
4242
align-items: top;
4343
column-gap: 1rem;
44+
45+
@media(min-width: 600px) {
46+
grid-template-columns: auto max-content;
47+
}
4448
}
4549

4650
.post-container.draft {
@@ -50,4 +54,10 @@ import { formatDate } from "../date";
5054
p {
5155
color: var(--text-color-alt);
5256
}
57+
58+
.post-summary {
59+
@media(max-width: 600px) {
60+
padding-top: 10px;
61+
}
62+
}
5363
</style>

0 commit comments

Comments
 (0)
Please sign in to comment.