From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/explore/category.tsx | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/components/explore/category.tsx b/app/components/explore/category.tsx index 51daaa9..8f67f0f 100644 --- a/app/components/explore/category.tsx +++ b/app/components/explore/category.tsx @@ -31,17 +31,17 @@ const isAllCategories = !list.includes(value as AppCategory) || value === allCategoriesEn const itemClassName = (isSelected: boolean) => cn( - 'flex h-[32px] cursor-pointer items-center rounded-lg border-[0.5px] border-transparent px-3 py-[7px] font-medium leading-[18px] text-text-tertiary hover:bg-components-main-nav-nav-button-bg-active', - isSelected && 'border-components-main-nav-nav-button-border bg-components-main-nav-nav-button-bg-active text-components-main-nav-nav-button-text-active shadow-xs', + 'flex items-center px-3 py-[7px] h-[32px] rounded-lg border-[0.5px] border-transparent text-gray-700 font-medium leading-[18px] cursor-pointer hover:bg-gray-200', + isSelected && 'bg-white border-gray-200 shadow-xs text-primary-600 hover:bg-white', ) return ( - <div className={cn(className, 'flex flex-wrap space-x-1 text-[13px]')}> + <div className={cn(className, 'flex space-x-1 text-[13px] flex-wrap')}> <div className={itemClassName(isAllCategories)} onClick={() => onChange(allCategoriesEn)} > - <ThumbsUp className='mr-1 h-3.5 w-3.5' /> + <ThumbsUp className='mr-1 w-3.5 h-3.5' /> {t('explore.apps.allCategories')} </div> {list.filter(name => name !== allCategoriesEn).map(name => ( @@ -50,7 +50,7 @@ className={itemClassName(name === value)} onClick={() => onChange(name)} > - {(categoryI18n as any)[name] ? t(`explore.category.${name}`) : name} + {categoryI18n[name] ? t(`explore.category.${name}`) : name} </div> ))} </div> -- Gitblit v1.8.0