From 79b717e115cb2a9a182e5fa99d5d04c9cec3113f Mon Sep 17 00:00:00 2001 From: Willie Date: Mon, 30 Mar 2026 16:57:24 +0800 Subject: [PATCH] fix(ui): use ss-segmented classes for resource tabs to inherit playful theme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace raw button underline tabs with ss-segmented + ss-segmented-item classes. This hooks into the existing playful theme CSS which applies wobbly border-radius, hard offset shadows, and pencil-colored active state — matching the hand-drawn aesthetic of other segmented controls. Uses non-connected variant (gap between buttons) to visually distinguish from the sub-filter pills below. --- ui/src/pages/ResourcesPage.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ui/src/pages/ResourcesPage.tsx b/ui/src/pages/ResourcesPage.tsx index 9455a145f..47d781039 100644 --- a/ui/src/pages/ResourcesPage.tsx +++ b/ui/src/pages/ResourcesPage.tsx @@ -804,8 +804,8 @@ export default function SkillsPage() { } /> - {/* Resource type underline tabs */} -
+ {/* Resource type tabs */} +
{([ { key: 'skills' as ResourceTab, icon: , label: 'Skills', count: skillItems.length }, { key: 'agents' as ResourceTab, icon: , label: 'Agents', count: agentItems.length }, @@ -814,13 +814,16 @@ export default function SkillsPage() { key={tab.key} onClick={() => { setActiveTab(tab.key); setFilterType('all'); setSearch(''); }} className={` - inline-flex items-center gap-1.5 px-4 py-2.5 text-sm font-medium cursor-pointer transition-colors - border-b-2 -mb-px + ss-segmented-item ss-resource-tab + inline-flex items-center gap-1.5 px-4 py-2 text-sm font-medium cursor-pointer + transition-all duration-150 border ${activeTab === tab.key - ? 'border-pencil text-pencil' - : 'border-transparent text-pencil-light hover:text-pencil hover:border-muted-dark' + ? 'bg-surface text-pencil border-muted-dark' + : 'bg-transparent text-pencil-light border-muted hover:border-muted-dark hover:text-pencil' } `} + style={{ borderRadius: 'var(--radius-md)' }} + aria-pressed={activeTab === tab.key} > {tab.icon} {tab.label}