fix: plugin tool width in agent app
This commit is contained in:
parent
06fe17c93e
commit
dc9675d2d8
@ -144,6 +144,7 @@ const AllTools = ({
|
|||||||
wrapElemRef={wrapElemRef}
|
wrapElemRef={wrapElemRef}
|
||||||
list={notInstalledPlugins as any} ref={pluginRef}
|
list={notInstalledPlugins as any} ref={pluginRef}
|
||||||
searchText={searchText}
|
searchText={searchText}
|
||||||
|
toolContentClassName={toolContentClassName}
|
||||||
tags={tags}
|
tags={tags}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,6 +15,7 @@ type Props = {
|
|||||||
list: Plugin[]
|
list: Plugin[]
|
||||||
searchText: string
|
searchText: string
|
||||||
tags: string[]
|
tags: string[]
|
||||||
|
toolContentClassName?: string
|
||||||
disableMaxWidth?: boolean
|
disableMaxWidth?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -23,6 +24,7 @@ const List = forwardRef<{ handleScroll: () => void }, Props>(({
|
|||||||
searchText,
|
searchText,
|
||||||
tags,
|
tags,
|
||||||
list,
|
list,
|
||||||
|
toolContentClassName,
|
||||||
disableMaxWidth = false,
|
disableMaxWidth = false,
|
||||||
}, ref) => {
|
}, ref) => {
|
||||||
const { t } = useTranslation()
|
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 (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Loading…
Reference in New Issue
Block a user