From 46c72e163be46eb5d1d94c84532377f69e53e0b6 Mon Sep 17 00:00:00 2001 From: zipg Date: Sat, 27 Jun 2026 01:37:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=BC=98=E5=8C=96=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=BC=B9=E6=A1=86=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: staff --- .../connection/ConnectionDialog.vue | 260 ++++++++++-------- 1 file changed, 140 insertions(+), 120 deletions(-) diff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vue index 0566d25569..bb349a436c 100644 --- a/apps/desktop/src/components/connection/ConnectionDialog.vue +++ b/apps/desktop/src/components/connection/ConnectionDialog.vue @@ -1388,6 +1388,15 @@ const testResultMessage = computed(() => { if (!testResult.value) return ""; return testResult.value.ok ? t("connection.testSuccess") : testResult.value.message; }); +const shouldUseWideConnectionDialog = computed(() => dialogStep.value === "config" && (canChooseVisibleDatabases.value || (canChooseVisibleSchemas.value && !visibleFilterUsesSchemas.value))); +const connectionDialogContentClass = computed(() => { + if (dialogStep.value === "select") return "sm:max-w-[760px]"; + return shouldUseWideConnectionDialog.value ? "sm:max-w-[660px]" : "sm:max-w-[560px]"; +}); +const connectionLabelClass = "justify-self-start text-left"; +const connectionLabelSmallClass = `${connectionLabelClass} text-xs`; +const connectionLabelTopClass = `${connectionLabelClass} mt-2`; +const connectionLabelSmallPaddedClass = `${connectionLabelClass} pt-2 text-xs`; const hasRequiredConnectionTarget = computed(() => { if (form.value.db_type === "mq") return !!mqAdminUrl.value.trim(); if (form.value.db_type === "zookeeper") return !!(form.value.host || form.value.connection_string || connectionUrlInput.value.trim()); @@ -2659,7 +2668,7 @@ function openExternalUrl(url: string) {