From 72aabf542935c704c5ea80e807382cce83b741a9 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Wed, 15 Jul 2026 21:23:24 +0000 Subject: [PATCH] Fit promo image fully inside the customer display card. Center and clamp the image with object-contain so it scales within the card bounds without cropping or overflowing. --- resources/views/pos/customer-display.blade.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/views/pos/customer-display.blade.php b/resources/views/pos/customer-display.blade.php index 1eaccf5..913fe79 100644 --- a/resources/views/pos/customer-display.blade.php +++ b/resources/views/pos/customer-display.blade.php @@ -57,11 +57,12 @@ {{-- Promo with image: large hero + copy (side-by-side on landscape kiosks) --}}
-
+ {{-- Flex-sized card; image absolutely centered and scaled to fit (object-contain) --}} +
+ class="absolute left-1/2 top-1/2 z-[1] max-h-[calc(100%-1.5rem)] max-w-[calc(100%-1.5rem)] -translate-x-1/2 -translate-y-1/2 object-contain object-center sm:max-h-[calc(100%-2rem)] sm:max-w-[calc(100%-2rem)] lg:max-h-[calc(100%-2.5rem)] lg:max-w-[calc(100%-2.5rem)]">