Fix: Update the background color and hover effect of secondary buttons (#23186)

This commit is contained in:
GuanMu
2025-07-31 21:19:34 +08:00
committed by GitHub
parent 79ea94483e
commit 98aea05ad2
8 changed files with 91 additions and 40 deletions

View File

@@ -27,9 +27,12 @@ import { useInvalidateAppWorkflow, usePublishWorkflow, useResetWorkflowVersionHi
import type { PublishWorkflowParams } from '@/types/workflow'
import { fetchAppDetail } from '@/service/apps'
import { useStore as useAppStore } from '@/app/components/app/store'
import useTheme from '@/hooks/use-theme'
import cn from '@/utils/classnames'
const FeaturesTrigger = () => {
const { t } = useTranslation()
const { theme } = useTheme()
const workflowStore = useWorkflowStore()
const appDetail = useAppStore(s => s.appDetail)
const appID = appDetail?.id
@@ -121,7 +124,13 @@ const FeaturesTrigger = () => {
return (
<>
<Button className='text-components-button-secondary-text' onClick={handleShowFeatures}>
<Button
className={cn(
'text-components-button-secondary-text',
theme === 'dark' && 'rounded-lg border border-black/5 bg-white/10 backdrop-blur-sm',
)}
onClick={handleShowFeatures}
>
<RiApps2AddLine className='mr-1 h-4 w-4 text-components-button-secondary-text' />
{t('workflow.common.features')}
</Button>