fix: update template category labels and improve path handling

This commit is contained in:
yessenia
2026-02-13 02:05:08 +08:00
parent 0f4b578462
commit eff202834c
4 changed files with 6 additions and 6 deletions

View File

@ -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
}

View File

@ -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]',
)}
>
<RiPriceTag3Line className={cn(