From b31d52c00c2e250bc65a967ff3c64c1489950a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E4=B8=AB=E8=AE=B2=E6=A2=B5?= Date: Thu, 9 Jul 2026 11:19:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(welcome-screen):=20=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E6=88=AA=E6=96=AD=E6=97=B6=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/layout/WelcomeScreen.vue | 83 ++++++++++++------- .../components/ui/TruncatedTextTooltip.vue | 4 + 2 files changed, 55 insertions(+), 32 deletions(-) diff --git a/apps/desktop/src/components/layout/WelcomeScreen.vue b/apps/desktop/src/components/layout/WelcomeScreen.vue index e2266cfa2..030657007 100644 --- a/apps/desktop/src/components/layout/WelcomeScreen.vue +++ b/apps/desktop/src/components/layout/WelcomeScreen.vue @@ -2,6 +2,7 @@ import { useI18n } from "vue-i18n"; import { FilePlus2, Plus, History, Download, Database, Search, ShieldCheck, Sparkles } from "@lucide/vue"; import DatabaseIcon from "@/components/icons/DatabaseIcon.vue"; +import TruncatedTextTooltip from "@/components/ui/TruncatedTextTooltip.vue"; import { connectionDriverLabel, connectionIconType, connectionRedactedNameLabel, connectionRedactedOptionSubtitle } from "@/lib/connection/connectionPresentation"; import type { ConnectionConfig } from "@/types/database"; @@ -34,42 +35,50 @@ const emit = defineEmits<{ }>(); const { t } = useI18n(); + +function welcomeConnectionSubtitle(connection: ConnectionConfig): string { + return connectionRedactedOptionSubtitle(connection) || connectionDriverLabel(connection); +}