Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add virtual-scroll to NTree (#11636)

boojack06bb05cd7960
diff --git a/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue b/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue
index 81c3a07173..7c213a9c81 100644
--- a/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue
+++ b/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue
@@ -166,6 +166,7 @@ const renderSourceList: TransferRenderSourceList = ({ onCheck, pattern }) => {
checkOnClick: true,
data: sourceTreeOptions.value,
blockLine: true,
+ virtualScroll: true,
style: "height: 428px", // since <NTransfer> height is 512
renderLabel: ({ option }: { option: TreeOption }) => {
return h(Label, {
@@ -196,6 +197,7 @@ const renderTargetList: TransferRenderSourceList = ({ onCheck }) => {
defaultExpandAll: true,
data: targetTreeOptions.value,
blockLine: true,
+ virtualScroll: true,
style: "height: 468px", // since <NTransfer> height is 512
renderLabel: ({ option }: { option: TreeOption }) => {
return h(Label, {