Sfoglia il codice sorgente

fix: make Mini Cooper image fill card on mobile

Use HeroUI classNames to force wrapper and img to fill the full
card area with object-cover.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
rriecc 9 mesi fa
parent
commit
d44a27f5ab
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      components/mini-pic.tsx

+ 5 - 1
components/mini-pic.tsx

@@ -36,7 +36,11 @@ const MiniPic = ({ onClick, showOverlay = false }: MiniPicProps) => {
     >
       <Image
         alt="Mini Cooper"
-        className="rounded-b-none object-cover"
+        classNames={{
+          wrapper: "!max-w-none w-full h-full",
+          img: "w-full h-full object-cover",
+        }}
+        radius="none"
         src={isDark ? "mini-dark.jpg" : "mini-light.jpg"}
       />
       {showOverlay && (