diff --git a/src/components/sections/ToolGridSection.tsx b/src/components/sections/ToolGridSection.tsx
index 6ebfe20..2137199 100644
--- a/src/components/sections/ToolGridSection.tsx
+++ b/src/components/sections/ToolGridSection.tsx
@@ -297,7 +297,7 @@ function ToolCardImage({ tool, toolName }: { tool: ToolItem; toolName: string })
// 1. VIDEO TOOL (Background Remover)
if (media.type === 'video') {
return (
-
+
);
@@ -315,14 +315,14 @@ function ToolCardImage({ tool, toolName }: { tool: ToolItem; toolName: string })
// 2. SINGLE IMAGE (Polaroid, etc.)
if (media.type === 'single') {
return (
-
+
{/* eslint-disable-next-line @next/next/no-img-element */}
);
@@ -335,7 +335,7 @@ function ToolCardImage({ tool, toolName }: { tool: ToolItem; toolName: string })
onPointerDown={handleContainerPointerDown}
onPointerMove={handleContainerPointerMove}
onPointerLeave={handleContainerPointerLeave}
- className="relative w-full aspect-square rounded-xl overflow-hidden bg-paper-2 select-none cursor-ew-resize group/img shadow-inner touch-pan-y"
+ 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"
style={{ touchAction: 'pan-y' }}
>
{/* Enhanced / After Image (Underneath) */}
@@ -345,7 +345,7 @@ function ToolCardImage({ tool, toolName }: { tool: ToolItem; toolName: string })
alt={`${toolName} after`}
loading="lazy"
decoding="async"
- className="absolute inset-0 w-full h-full object-cover object-top pointer-events-none"
+ className="absolute inset-0 w-full h-full object-cover object-center pointer-events-none"
/>
{/* Original / Before Image (Clipped overlay) */}
@@ -362,7 +362,7 @@ function ToolCardImage({ tool, toolName }: { tool: ToolItem; toolName: string })
alt={`${toolName} before`}
loading="lazy"
decoding="async"
- className="absolute inset-0 w-full h-full object-cover object-top pointer-events-none"
+ className="absolute inset-0 w-full h-full object-cover object-center pointer-events-none"
/>
@@ -382,11 +382,11 @@ function ToolCardImage({ tool, toolName }: { tool: ToolItem; toolName: string })
aria-valuenow={Math.round(splitPos)}
tabIndex={0}
style={{ touchAction: 'none' }}
- className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-7 h-7 rounded-full bg-paper-hi text-ink shadow-md flex items-center justify-center border border-rule pointer-events-auto cursor-ew-resize touch-none before:absolute before:-inset-3 before:content-['']"
+ className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-6 h-6 rounded-full bg-paper-hi text-ink shadow-md flex items-center justify-center border border-rule pointer-events-auto cursor-ew-resize touch-none before:absolute before:-inset-3 before:content-['']"
>
@@ -408,16 +408,16 @@ function ToolCard({
const toolSummary = resolveLocalised(tool.summary, locale);
return (
-