From 596a3ce0102ef0772f2e6ce3b93dbf57fc485713 Mon Sep 17 00:00:00 2001 From: Joan Date: Sat, 7 Feb 2026 23:17:40 +0100 Subject: [PATCH] fix(ui): force 1:1 ratio and padding for enemy images --- pwa/src/components/game/LocationView.css | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pwa/src/components/game/LocationView.css b/pwa/src/components/game/LocationView.css index 2244e09..17e42be 100644 --- a/pwa/src/components/game/LocationView.css +++ b/pwa/src/components/game/LocationView.css @@ -9,20 +9,23 @@ } /* Padded Image for enemies */ -/* Padded Image for enemies */ +/* Padded Image for enemies - Matches item card structure but with padding */ .padded-image { padding: 10px; box-sizing: border-box; + width: 100%; + height: 100%; display: flex; align-items: center; justify-content: center; - width: 100%; - height: 100%; + overflow: hidden; } .padded-image img { + width: 100%; + height: 100%; object-fit: contain !important; - /* Ensure enemies don't get cropped by cover if padded */ + /* Ensure enemies don't get cropped */ } /* Remove old expanded grid styles */