summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorIan GrĂ¼nig <ian.gruenig@gmail.com>2021-08-22 08:15:28 +0200
committerGitHub <noreply@github.com>2021-08-22 11:45:28 +0530
commitdcbe6277bbbf6780c4697b5180d2ace51ba4196d (patch)
treee8e386cba1eee0a4524dad6caf21609320c51beb /assets
parent1214963760148f303390c568ee1f013cf64a896e (diff)
Add width and height attributes to cover images (#519)
- Ensures that the browser can allocate the correct amount of space in the document while the image is loading. - Reduces CLS #499
Diffstat (limited to 'assets')
-rw-r--r--assets/css/common/post-entry.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/assets/css/common/post-entry.css b/assets/css/common/post-entry.css
index ac2afcc..2789f41 100644
--- a/assets/css/common/post-entry.css
+++ b/assets/css/common/post-entry.css
@@ -98,6 +98,7 @@
border-radius: var(--radius);
pointer-events: none;
width: 100%;
+ height: auto;
}
.entry-cover a {