fix columns
All checks were successful
Build and Deploy Astro App / build_and_deploy (push) Successful in 31s
All checks were successful
Build and Deploy Astro App / build_and_deploy (push) Successful in 31s
This commit is contained in:
parent
5c26f7e8da
commit
af6decdc5f
1 changed files with 8 additions and 6 deletions
|
|
@ -9,11 +9,7 @@ const { posts } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="post-grid">
|
<div class="post-grid">
|
||||||
{
|
{posts.map((post_file: any) => <PostPreviewSmall post={post_file.data} />)}
|
||||||
posts.map((post_file: any) => (
|
|
||||||
<PostPreviewSmall post={post_file.data} />
|
|
||||||
))
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
@ -21,6 +17,12 @@ const { posts } = Astro.props;
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 64px;
|
gap: 64px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen ans (max-width: 800px) {
|
||||||
|
.post-grid {
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue