Tighten featured tools header arrow and add “All tools” section divider

This commit is contained in:
lyzno1 2025-10-22 14:41:18 +08:00
parent 16957f14f1
commit 45b221659b
No known key found for this signature in database
1 changed files with 20 additions and 11 deletions

View File

@ -32,6 +32,7 @@ import { useGlobalPublicStore } from '@/context/global-public-context'
import RAGToolSuggestions from './rag-tool-suggestions'
import FeaturedTools from './featured-tools'
import Link from 'next/link'
import Divider from '@/app/components/base/divider'
type AllToolsProps = {
className?: string
@ -221,18 +222,26 @@ const AllTools = ({
/>
)}
{shouldShowFeatured && (
<FeaturedTools
plugins={featuredPlugins}
providerMap={providerMap}
onSelect={onSelect}
selectedTools={selectedTools}
canChooseMCPTool={canChooseMCPTool}
isLoading={featuredLoading}
onInstallSuccess={async () => {
await onFeaturedInstallSuccess?.()
}}
/>
<>
<FeaturedTools
plugins={featuredPlugins}
providerMap={providerMap}
onSelect={onSelect}
selectedTools={selectedTools}
canChooseMCPTool={canChooseMCPTool}
isLoading={featuredLoading}
onInstallSuccess={async () => {
await onFeaturedInstallSuccess?.()
}}
/>
<div className='px-3'>
<Divider className='!h-px' />
</div>
</>
)}
<div className='px-3 pb-1 pt-2'>
<span className='system-xs-medium text-text-primary'>{t('tools.allTools')}</span>
</div>
<Tools
className={toolContentClassName}
tools={tools}