Skip to content

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

fix(frontend): listElRef undefined since NTree with virtual-scroll has no height explicitly (#10162)

Liu Jiddc2a42a6c86
diff --git a/frontend/src/components/Issue/panel/RequestExportPanel/ExportResourceForm/DatabaseResourceSelector.vue b/frontend/src/components/Issue/panel/RequestExportPanel/ExportResourceForm/DatabaseResourceSelector.vue
index 1a38184da3..55ef12eef8 100644
--- a/frontend/src/components/Issue/panel/RequestExportPanel/ExportResourceForm/DatabaseResourceSelector.vue
+++ b/frontend/src/components/Issue/panel/RequestExportPanel/ExportResourceForm/DatabaseResourceSelector.vue
@@ -148,6 +148,7 @@ const renderSourceList: TransferRenderSourceList = ({ onCheck, pattern }) => {
data: sourceTreeOptions.value,
defaultExpandAll: true,
blockLine: true,
+ style: "height: 428px", // since <NTransfer> height is 512
renderLabel: ({ option }: { option: TreeOption }) => {
return h(Label, {
option: option as DatabaseTreeOption,
@@ -177,6 +178,7 @@ const renderTargetList: TransferRenderSourceList = ({ onCheck }) => {
defaultExpandAll: true,
data: targetTreeOptions.value,
blockLine: true,
+ style: "height: 468px", // since <NTransfer> height is 512
renderLabel: ({ option }: { option: TreeOption }) => {
return h(Label, {
option: option as DatabaseTreeOption,
diff --git a/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue b/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue
index 921b44b560..78daeb1345 100644
--- a/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue
+++ b/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue
@@ -174,6 +174,7 @@ const renderSourceList: TransferRenderSourceList = ({ onCheck, pattern }) => {
virtualScroll: true,
data: sourceTreeOptions.value,
blockLine: true,
+ style: "height: 428px", // since <NTransfer> height is 512
renderLabel: ({ option }: { option: TreeOption }) => {
return h(Label, {
option: option as DatabaseTreeOption,
@@ -204,6 +205,7 @@ const renderTargetList: TransferRenderSourceList = ({ onCheck }) => {
defaultExpandAll: true,
data: targetTreeOptions.value,
blockLine: true,
+ style: "height: 468px", // since <NTransfer> height is 512
renderLabel: ({ option }: { option: TreeOption }) => {
return h(Label, {
option: option as DatabaseTreeOption,