From 8726d042f268d3bfd5962da162185690440a937e Mon Sep 17 00:00:00 2001 From: freakoverse Date: Mon, 2 Sep 2024 09:55:00 +0000 Subject: [PATCH] Update src/styles/cardMod.css --- src/styles/cardMod.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/styles/cardMod.css b/src/styles/cardMod.css index 7499467..f50658c 100644 --- a/src/styles/cardMod.css +++ b/src/styles/cardMod.css @@ -9,10 +9,16 @@ background: linear-gradient(to top right, #262626, #292929, #262626); } -.cMMPicture { +.cMMPictureWrapper { position: relative; width: 100%; + padding-top: 56.25%; +} + +.cMMPicture { + position: absolute; width: 100%; + height: 100%; object-fit: cover; /* Ensures the image covers the container like a background image */ }