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)
|
// 1. VIDEO TOOL (Background Remover)
|
||||||
if (media.type === 'video') {
|
if (media.type === 'video') {
|
||||||
return (
|
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
|
<video
|
||||||
ref={videoRef}
|
ref={videoRef}
|
||||||
src={media.videoUrl}
|
src={media.videoUrl}
|
||||||
@@ -315,7 +315,7 @@ function ToolCardImage({ tool, toolName }: { tool: ToolItem; toolName: string })
|
|||||||
// 2. SINGLE IMAGE (Polaroid, etc.)
|
// 2. SINGLE IMAGE (Polaroid, etc.)
|
||||||
if (media.type === 'single') {
|
if (media.type === 'single') {
|
||||||
return (
|
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 */}
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||||
<img
|
<img
|
||||||
src={media.image}
|
src={media.image}
|
||||||
@@ -335,7 +335,7 @@ function ToolCardImage({ tool, toolName }: { tool: ToolItem; toolName: string })
|
|||||||
onPointerDown={handleContainerPointerDown}
|
onPointerDown={handleContainerPointerDown}
|
||||||
onPointerMove={handleContainerPointerMove}
|
onPointerMove={handleContainerPointerMove}
|
||||||
onPointerLeave={handleContainerPointerLeave}
|
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' }}
|
style={{ touchAction: 'pan-y' }}
|
||||||
>
|
>
|
||||||
{/* Enhanced / After Image (Underneath) */}
|
{/* Enhanced / After Image (Underneath) */}
|
||||||
|
|||||||
Reference in New Issue
Block a user