fix columns
All checks were successful
Build and Deploy Astro App / build_and_deploy (push) Successful in 31s

This commit is contained in:
ebby 2026-10-05 18:05:53 +02:00
parent 5c26f7e8da
commit af6decdc5f

View file

@ -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>