From b6259ea2fab910d8aa47e60b51a83db5100b8c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sat, 20 Nov 2021 21:38:43 +0100 Subject: [PATCH] Fix photos 1px right and bottom glitch on some window sizes --- src/style/atoms/_photo.scss | 4 ++-- src/style/molecules/_photo-card.scss | 4 ++-- src/style/organisms/_house.scss | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/style/atoms/_photo.scss b/src/style/atoms/_photo.scss index b562a57..d7161f2 100644 --- a/src/style/atoms/_photo.scss +++ b/src/style/atoms/_photo.scss @@ -18,8 +18,8 @@ img { display: block; - width: 100%; - height: 100%; + width: calc(100% + 1px); + height: calc(100% + 1px); 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 286fcd4..2f41c3b 100644 --- a/src/style/molecules/_photo-card.scss +++ b/src/style/molecules/_photo-card.scss @@ -17,8 +17,8 @@ } img { display: block; - width: 100%; - height: 100%; + width: calc(100% + 1px); + height: calc(100% + 1px); object-fit: cover; } diff --git a/src/style/organisms/_house.scss b/src/style/organisms/_house.scss index 19490a1..b3dc456 100644 --- a/src/style/organisms/_house.scss +++ b/src/style/organisms/_house.scss @@ -81,8 +81,8 @@ } img { display: block; - width: 100%; - height: 100%; + width: calc(100% + 1px); + height: calc(100% + 1px); object-fit: cover; transform: scale3d(1.125, 1.125, 1.125); transition: transform 2s var(--ease-quart), opacity 1.2s var(--ease-quart);