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 */} {toolName}
); @@ -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 ( -
+
{/* Image Dominant Preview Frame */} {/* Info Area: Title, Subtitle, and Direct Action Button */} -
+
{/* Tool Title */} -

+

{toolName}

@@ -429,10 +429,10 @@ function ToolCard({
{/* Action Button Row: Highly Visible Prominent Primary Button */} -
+
@@ -562,7 +562,7 @@ export function ToolGridSection({ {resolveLocalised(title, locale)} )} -
+
{tools.map((tool) => ( ))} @@ -924,7 +924,7 @@ export function ToolGridSection({
{searchResults.length > 0 ? ( -
+
{searchResults.map((tool) => ( ))} @@ -950,7 +950,7 @@ export function ToolGridSection({ ) : activeCategoryItem ? ( /* ================= SINGLE CATEGORY FOCUSED WORKSPACE (SHOWS ALL TOOLS IN CATEGORY) ================= */
-
+
{activeCategoryItem.tools.map((tool) => ( {/* Tool Cards Grid: 3 items in a row, at most 2 rows (6 tools) visible */} -
+
{displayedTools.map((tool) => (