fix: plugin tool width in agent app

This commit is contained in:
Joel 2025-01-09 13:53:07 +08:00
parent 06fe17c93e
commit dc9675d2d8
2 changed files with 4 additions and 1 deletions

View File

@ -144,6 +144,7 @@ const AllTools = ({
wrapElemRef={wrapElemRef}
list={notInstalledPlugins as any} ref={pluginRef}
searchText={searchText}
toolContentClassName={toolContentClassName}
tags={tags}
/>
</div>

View File

@ -15,6 +15,7 @@ type Props = {
list: Plugin[]
searchText: string
tags: string[]
toolContentClassName?: string
disableMaxWidth?: boolean
}
@ -23,6 +24,7 @@ const List = forwardRef<{ handleScroll: () => void }, Props>(({
searchText,
tags,
list,
toolContentClassName,
disableMaxWidth = false,
}, ref) => {
const { t } = useTranslation()
@ -76,7 +78,7 @@ const List = forwardRef<{ handleScroll: () => void }, Props>(({
)
}
const maxWidthClassName = 'max-w-[300px]'
const maxWidthClassName = toolContentClassName || 'max-w-[300px]'
return (
<>