fix: increase thumbnail height to 5:4 aspect ratio with balanced framing
This commit is contained in:
@@ -297,7 +297,7 @@ function ToolCardImage({ tool, toolName }: { tool: ToolItem; toolName: string })
|
||||
// 1. VIDEO TOOL (Background Remover)
|
||||
if (media.type === 'video') {
|
||||
return (
|
||||
<div className="relative w-full aspect-[16/10] max-h-48 sm:max-h-52 rounded-xl overflow-hidden bg-paper-2 select-none group/img isolate shadow-inner">
|
||||
<div className="relative w-full aspect-[5/4] max-h-60 sm:max-h-64 rounded-xl overflow-hidden bg-paper-2 select-none group/img isolate shadow-inner">
|
||||
<video
|
||||
ref={videoRef}
|
||||
src={media.videoUrl}
|
||||
@@ -315,7 +315,7 @@ function ToolCardImage({ tool, toolName }: { tool: ToolItem; toolName: string })
|
||||
// 2. SINGLE IMAGE (Polaroid, etc.)
|
||||
if (media.type === 'single') {
|
||||
return (
|
||||
<div className="relative w-full aspect-[16/10] max-h-48 sm:max-h-52 rounded-xl overflow-hidden bg-paper-2 select-none group/img shadow-inner">
|
||||
<div className="relative w-full aspect-[5/4] max-h-60 sm:max-h-64 rounded-xl overflow-hidden bg-paper-2 select-none group/img shadow-inner">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={media.image}
|
||||
@@ -335,7 +335,7 @@ function ToolCardImage({ tool, toolName }: { tool: ToolItem; toolName: string })
|
||||
onPointerDown={handleContainerPointerDown}
|
||||
onPointerMove={handleContainerPointerMove}
|
||||
onPointerLeave={handleContainerPointerLeave}
|
||||
className="relative w-full aspect-[16/10] max-h-48 sm:max-h-52 rounded-xl overflow-hidden bg-paper-2 select-none cursor-ew-resize group/img shadow-inner touch-pan-y"
|
||||
className="relative w-full aspect-[5/4] max-h-60 sm:max-h-64 rounded-xl overflow-hidden bg-paper-2 select-none cursor-ew-resize group/img shadow-inner touch-pan-y"
|
||||
style={{ touchAction: 'pan-y' }}
|
||||
>
|
||||
{/* Enhanced / After Image (Underneath) */}
|
||||
|
||||
Reference in New Issue
Block a user