Make thumbnail preview height hug the image instead of fixed square

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
mariosemes
2026-03-26 22:55:45 +01:00
parent d0081d347a
commit f47e019427

View File

@@ -315,7 +315,7 @@
<img src={product.image} alt="" class="max-w-full max-h-full object-contain" />
</div>
<div class="thumb-preview pointer-events-none">
<div class="w-80 h-80 rounded-lg bg-surface-raised border border-surface-border shadow-2xl shadow-black/50 flex items-center justify-center p-5">
<div class="w-80 max-h-80 rounded-lg bg-surface-raised border border-surface-border shadow-2xl shadow-black/50 p-5">
<img src={product.image} alt={product.name} class="max-w-full max-h-full object-contain" />
</div>
</div>