mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +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 { 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
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user