We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efdf418 commit a8704cfCopy full SHA for a8704cf
src/components/blog/GridItem.astro
@@ -16,13 +16,15 @@ const image = await findImage(post.image);
16
---
17
18
<article class="mb-6 transition">
19
- <div class="relative h-0 pb-[56.25%] lg:h-64 overflow-hidden bg-gray-400 dark:bg-slate-700 rounded shadow-lg mb-6">
+ <div class="relative md:h-64 bg-gray-400 dark:bg-slate-700 rounded shadow-lg mb-6">
20
{
21
image && (
22
<Picture
23
src={image}
24
- class="object-cover w-full lg:h-64 rounded shadow-lg bg-gray-400 dark:bg-slate-700"
+ class="md:object-cover w-full md:w-auto md:h-full rounded shadow-lg bg-gray-400 dark:bg-slate-700"
25
widths={[400, 900]}
26
+ width="400"
27
+ height="224"
28
sizes="(max-width: 900px) 400px, 900px"
29
alt={post.title}
30
aspectRatio="16:9"
0 commit comments