From f69861d449c7ee55501857a1fa9088d74d3f66f3 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Sun, 12 Apr 2026 20:16:08 +0200 Subject: [PATCH] feat(31-02): add responsive icon buttons to global item detail page Replace text action buttons (Add to Collection, Add to Thread) with icon-only buttons on mobile. Uses plus and message-square-plus icons. All icon buttons have aria-label and 44px touch targets. --- .../routes/global-items/$globalItemId.tsx | 39 ++++++++++++++++++- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/src/client/routes/global-items/$globalItemId.tsx b/src/client/routes/global-items/$globalItemId.tsx index 9576728..609ddcb 100644 --- a/src/client/routes/global-items/$globalItemId.tsx +++ b/src/client/routes/global-items/$globalItemId.tsx @@ -3,6 +3,7 @@ import { GearImage, imageContainerBg } from "../../components/GearImage"; import { useAuth } from "../../hooks/useAuth"; import { useFormatters } from "../../hooks/useFormatters"; import { useGlobalItem } from "../../hooks/useGlobalItems"; +import { LucideIcon } from "../../lib/iconData"; import { useUIStore } from "../../stores/uiStore"; export const Route = createFileRoute("/global-items/$globalItemId")({ @@ -165,6 +166,7 @@ function GlobalItemDetail() { {/* Action buttons */}
+ {/* Add to Collection — desktop */} + {/* Add to Collection — mobile */} + + {/* Add to Thread — desktop */} + {/* Add to Thread — mobile */} +
{/* Description */}