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
commit 98aea05ad2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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>