chore: remove use less has scrollbar

This commit is contained in:
Joel
2025-07-07 10:21:42 +08:00
parent 7224cf82c3
commit 4e37a07fe9
2 changed files with 0 additions and 4 deletions

View File

@ -21,7 +21,6 @@ import PluginList, { type ListProps } from '@/app/components/workflow/block-sele
import { PluginType } from '../../plugins/types'
import { useMarketplacePlugins } from '../../plugins/marketplace/hooks'
import { useGlobalPublicStore } from '@/context/global-public-context'
import useCheckVerticalScrollbar from './use-check-vertical-scrollbar'
type AllToolsProps = {
className?: string
@ -107,7 +106,6 @@ const AllTools = ({
const pluginRef = useRef<ListRef>(null)
const wrapElemRef = useRef<HTMLDivElement>(null)
const hasVerticalScrollbar = useCheckVerticalScrollbar(wrapElemRef)
const isSupportGroupView = [ToolTypeEnum.All, ToolTypeEnum.BuiltIn].includes(activeTab)
return (
@ -150,7 +148,6 @@ const AllTools = ({
hasSearchText={!!searchText}
selectedTools={selectedTools}
canChooseMCPTool={canChooseMCPTool}
hasScrollBar={hasVerticalScrollbar}
/>
{/* Plugins from marketplace */}
{enable_marketplace && <PluginList

View File

@ -28,7 +28,6 @@ type ToolsProps = {
indexBarClassName?: string
selectedTools?: ToolValue[]
canChooseMCPTool?: boolean
hasScrollBar?: boolean
}
const Blocks = ({
onSelect,