diff options
author | 2021-06-08 13:04:49 -0700 | |
---|---|---|
committer | 2021-06-08 13:04:49 -0700 | |
commit | 9afa92d0c1f1a8acb7067ca00c3f35ffcae5987a (patch) | |
tree | 475a9a425dbaae08b8229b9d1ad1c90f20c999ba | |
parent | f3ce87a84b43578f1f36b862a3fbe419c94a9081 (diff) | |
download | astro-9afa92d0c1f1a8acb7067ca00c3f35ffcae5987a.tar.gz astro-9afa92d0c1f1a8acb7067ca00c3f35ffcae5987a.tar.zst astro-9afa92d0c1f1a8acb7067ca00c3f35ffcae5987a.zip |
fix cover image on mobile
-rw-r--r-- | www/src/components/BlogPost.astro | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/www/src/components/BlogPost.astro b/www/src/components/BlogPost.astro index 748803e83..44154137e 100644 --- a/www/src/components/BlogPost.astro +++ b/www/src/components/BlogPost.astro @@ -11,7 +11,7 @@ export let heroImage: string; <article class="content"> <div> <header> - {heroImage && <img width="720" height="480" class="hero-image" loading="lazy" src={heroImage} />} + {heroImage && <img width="720" height="420" class="hero-image" loading="lazy" src={heroImage} />} <p class="publish-date">{publishDate}</p> <h1 class="title">{title}</h1> <Author authorId={author} /> @@ -31,6 +31,15 @@ export let heroImage: string; margin-bottom: 4rem; max-width: 1280px; } + +@media (max-width: 50em) { + .hero-image { + height: 260px; + margin-top: 0; + margin-bottom: 2rem; + } +} + .content { margin-bottom: 8rem; } |