From eff202834c4ede06c22e1a7025381d56a90fe5b7 Mon Sep 17 00:00:00 2001 From: yessenia Date: Fri, 13 Feb 2026 02:05:08 +0800 Subject: [PATCH] fix: update template category labels and improve path handling --- web/app/components/plugins/marketplace/atoms.ts | 2 +- .../marketplace/category-switch/hero-tags-trigger.tsx | 6 +++--- web/i18n/en-US/plugin.json | 2 +- web/i18n/zh-Hans/plugin.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/app/components/plugins/marketplace/atoms.ts b/web/app/components/plugins/marketplace/atoms.ts index 5ab6ababe6..36a608beed 100644 --- a/web/app/components/plugins/marketplace/atoms.ts +++ b/web/app/components/plugins/marketplace/atoms.ts @@ -78,7 +78,7 @@ export function useCreationType() { const pathname = usePathname() const segments = pathname.split('/').filter(Boolean) - if (segments[0] === CREATION_TYPE.templates) + if (segments[0] === CREATION_TYPE.templates || segments[0] === 'template') return CREATION_TYPE.templates return CREATION_TYPE.plugins } diff --git a/web/app/components/plugins/marketplace/category-switch/hero-tags-trigger.tsx b/web/app/components/plugins/marketplace/category-switch/hero-tags-trigger.tsx index 351da42ab7..1944e5a8e1 100644 --- a/web/app/components/plugins/marketplace/category-switch/hero-tags-trigger.tsx +++ b/web/app/components/plugins/marketplace/category-switch/hero-tags-trigger.tsx @@ -29,9 +29,9 @@ const HeroTagsTrigger = ({ className={cn( 'flex h-8 cursor-pointer select-none items-center gap-1.5 rounded-lg px-2.5 py-1.5', !hasSelected && 'border border-white/30 text-text-primary-on-surface', - !hasSelected && open && 'bg-white/10', - !hasSelected && !open && 'hover:bg-white/10', - hasSelected && 'border border-white bg-components-button-secondary-bg-hover shadow-md backdrop-blur-[5px]', + !hasSelected && open && 'bg-state-base-hover', + !hasSelected && !open && 'hover:bg-state-base-hover', + hasSelected && 'border-effect-highlight border bg-components-button-secondary-bg-hover shadow-md backdrop-blur-[5px]', )} >