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">
|
||||
{
|
||||
posts.map((post_file: any) => (
|
||||
<PostPreviewSmall post={post_file.data} />
|
||||
))
|
||||
}
|
||||
{posts.map((post_file: any) => <PostPreviewSmall post={post_file.data} />)}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
|
@ -21,6 +17,12 @@ const { posts } = Astro.props;
|
|||
display: grid;
|
||||
gap: 64px;
|
||||
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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue