From f299769ee971d8eaf7bd03c7096832153d6d0554 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 28 May 2026 12:56:36 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20restore=201:1=20image=20ratio=20?= =?UTF-8?q?=E2=80=94=20remove=20max-height=20constraint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The max-height broke the square aspect ratio needed for object coordinate overlays. Layout fix in App.jsx already ensures correct heights; the image constraint was unnecessary. Co-Authored-By: Claude Sonnet 4.6 --- src/components/PairCards.css | 2 -- src/pages/Feed.css | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/PairCards.css b/src/components/PairCards.css index b3ff5e9..d5b82dd 100644 --- a/src/components/PairCards.css +++ b/src/components/PairCards.css @@ -83,8 +83,6 @@ position: relative; width: 100%; aspect-ratio: 1 / 1; - /* Bild nie höher als ~40% des Viewport, damit die Karte komplett sichtbar ist */ - max-height: 40dvh; overflow: hidden; cursor: default; background: #1a1a1a; diff --git a/src/pages/Feed.css b/src/pages/Feed.css index f4b4b8b..b8cd936 100644 --- a/src/pages/Feed.css +++ b/src/pages/Feed.css @@ -8,11 +8,12 @@ .feed-slot { scroll-snap-align: start; - /* Mindesthöhe = volle Slot-Höhe; bei langer Karte wächst der Slot mit */ min-height: 100%; display: flex; align-items: flex-start; justify-content: center; padding: 16px 20px; + padding-bottom: 24px; flex-shrink: 0; + box-sizing: border-box; }