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

View File

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