fix(studio): object-contain on inline hover-autoplay video and image assets

This commit is contained in:
Miguel Ángel
2026-03-30 22:24:43 +02:00
parent b1d5c0aaee
commit a182ffdb0c
2 changed files with 2 additions and 2 deletions
@@ -71,7 +71,7 @@ export const RenderQueueItem = memo(function RenderQueueItem({
muted
loop
playsInline
className="absolute inset-0 w-full h-full object-cover"
className="absolute inset-0 w-full h-full object-contain"
/>
)}
{/* Static frame — visible when not hovering */}
@@ -34,7 +34,7 @@ function AssetThumbnail({
src={serveUrl}
alt={name}
loading="lazy"
className="w-full h-full object-cover"
className="w-full h-full object-contain"
onError={(e) => {
(e.target as HTMLImageElement).style.display = "none";
}}