From ba09c2af2d2f117959fb2b66bec5787f11a20e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Mon, 29 Nov 2021 23:52:59 +0100 Subject: [PATCH] Fix small photos pixel rendering over background --- src/style/atoms/_photo.scss | 4 ++-- src/style/molecules/_photo-card.scss | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/style/atoms/_photo.scss b/src/style/atoms/_photo.scss index d7161f2..3a2bbfd 100644 --- a/src/style/atoms/_photo.scss +++ b/src/style/atoms/_photo.scss @@ -18,8 +18,8 @@ img { display: block; - width: calc(100% + 1px); - height: calc(100% + 1px); + width: calc(100% + 2px); + height: calc(100% + 2px); object-fit: cover; pointer-events: none; user-select: none; diff --git a/src/style/molecules/_photo-card.scss b/src/style/molecules/_photo-card.scss index 2f41c3b..691a2b8 100644 --- a/src/style/molecules/_photo-card.scss +++ b/src/style/molecules/_photo-card.scss @@ -17,8 +17,8 @@ } img { display: block; - width: calc(100% + 1px); - height: calc(100% + 1px); + width: calc(100% + 2px); + height: calc(100% + 2px); object-fit: cover; }