mirror of
https://github.com/langgenius/dify.git
synced 2026-03-29 18:09:57 +08:00
chore: remove use less has scrollbar
This commit is contained in:
@ -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
|
||||
|
||||
@ -28,7 +28,6 @@ type ToolsProps = {
|
||||
indexBarClassName?: string
|
||||
selectedTools?: ToolValue[]
|
||||
canChooseMCPTool?: boolean
|
||||
hasScrollBar?: boolean
|
||||
}
|
||||
const Blocks = ({
|
||||
onSelect,
|
||||
|
||||
Reference in New Issue
Block a user