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) {