From ce53a34828ccabfe64b17f398fcac8c9c5949c2b Mon Sep 17 00:00:00 2001 From: Konstantin Chukhlomin Date: Sun, 29 Oct 2023 00:20:11 -0400 Subject: [PATCH] feat(photo): blurhash in viewer for loading photo --- content/photos.css | 2 ++ templates/photos.gohtml | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/content/photos.css b/content/photos.css index f4be850..db6eb15 100644 --- a/content/photos.css +++ b/content/photos.css @@ -124,6 +124,8 @@ a:hover { box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); overflow: hidden; position: relative; /* for :before element with blurhash image */ + transition-property: none; /* override link transition */ + object-fit: contain; /* avoid image stretching */ } .photos .photo.lazy { diff --git a/templates/photos.gohtml b/templates/photos.gohtml index 3258cda..ac39c84 100644 --- a/templates/photos.gohtml +++ b/templates/photos.gohtml @@ -45,6 +45,7 @@