From d414557d7402961014353eafd50fe3649b384167 Mon Sep 17 00:00:00 2001 From: mofeng-git Date: Wed, 29 Jul 2026 18:50:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=E9=A1=B5=E7=9C=89=E5=9B=9E=E5=BC=B9=E5=92=8C=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E8=89=B2=E8=BE=A8=E8=AF=86=E5=BA=A6=20#281?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在侧栏布局滚动容器统一阻止纵向 overscroll - 拆分状态指示色与成功文本色,提升在线状态辨识度 - 统一连接、运行及键盘 LED 等状态点样式 --- web/src/components/InfoBar.vue | 12 ++++---- web/src/components/MsdDialog.vue | 4 +-- web/src/components/StatsSheet.vue | 4 +-- web/src/components/StatusCard.vue | 2 +- .../components/ui/sidebar/SidebarContent.vue | 2 +- .../components/ui/sidebar/SidebarInset.vue | 2 +- web/src/style.css | 3 ++ web/src/views/SettingsView.vue | 30 +++++++++---------- 8 files changed, 31 insertions(+), 28 deletions(-) diff --git a/web/src/components/InfoBar.vue b/web/src/components/InfoBar.vue index 295e9448..9417f08c 100644 --- a/web/src/components/InfoBar.vue +++ b/web/src/components/InfoBar.vue @@ -48,13 +48,13 @@ const keysDisplay = computed(() => {
- C + C - N + N - S + S
@@ -87,15 +87,15 @@ const keysDisplay = computed(() => { diff --git a/web/src/components/MsdDialog.vue b/web/src/components/MsdDialog.vue index efcbc126..877b99a2 100644 --- a/web/src/components/MsdDialog.vue +++ b/web/src/components/MsdDialog.vue @@ -714,8 +714,8 @@ onUnmounted(() => { - - + + {{ msdConnected ? t('common.connected') : t('common.disconnected') }} diff --git a/web/src/components/StatsSheet.vue b/web/src/components/StatsSheet.vue index 243a74e4..8a203296 100644 --- a/web/src/components/StatsSheet.vue +++ b/web/src/components/StatsSheet.vue @@ -529,8 +529,8 @@ onUnmounted(() => { {{ t('stats.connectionType') }} {{ currentStats.isRelay ? t('stats.relay') : t('stats.p2p') }} diff --git a/web/src/components/StatusCard.vue b/web/src/components/StatusCard.vue index 73f97653..704b9c18 100644 --- a/web/src/components/StatusCard.vue +++ b/web/src/components/StatusCard.vue @@ -51,7 +51,7 @@ onMounted(() => { const statusColor = computed(() => { switch (props.status) { case 'connected': - return 'bg-success' + return 'bg-status-active' case 'connecting': return 'bg-warning animate-pulse' case 'disconnected': diff --git a/web/src/components/ui/sidebar/SidebarContent.vue b/web/src/components/ui/sidebar/SidebarContent.vue index bb6d9f1d..981eb426 100644 --- a/web/src/components/ui/sidebar/SidebarContent.vue +++ b/web/src/components/ui/sidebar/SidebarContent.vue @@ -11,7 +11,7 @@ const props = defineProps<{
diff --git a/web/src/components/ui/sidebar/SidebarInset.vue b/web/src/components/ui/sidebar/SidebarInset.vue index f46b43a8..a94fcffb 100644 --- a/web/src/components/ui/sidebar/SidebarInset.vue +++ b/web/src/components/ui/sidebar/SidebarInset.vue @@ -11,7 +11,7 @@ const props = defineProps<{
{ switch (watchdogStatusKey.value) { - case 'running': return 'bg-success' + case 'running': return 'bg-status-active' case 'error': return 'bg-destructive' default: return 'bg-muted-foreground' } @@ -819,7 +819,7 @@ function otgCheckStatusText(level: OtgSelfCheckLevel): string { function otgGroupStatusClass(status: OtgCheckGroupStatus): string { if (status === 'error') return 'bg-destructive' if (status === 'warn') return 'bg-warning' - if (status === 'ok') return 'bg-success' + if (status === 'ok') return 'bg-status-active' return 'bg-muted-foreground/40' } @@ -1778,7 +1778,7 @@ function getExtStatusClass(status: ExtensionStatus | undefined): string { switch (status.state) { case 'unavailable': return 'bg-muted-foreground' case 'stopped': return 'bg-muted-foreground' - case 'running': return 'bg-success' + case 'running': return 'bg-status-active' default: return 'bg-muted-foreground' } } @@ -2470,7 +2470,7 @@ function getRustdeskStatusClass(status: string | null | undefined): string { switch (status) { case 'running': case 'registered': - case 'connected': return 'bg-success' + case 'connected': return 'bg-status-active' case 'starting': case 'connecting': return 'bg-warning' case 'stopped': @@ -2648,7 +2648,7 @@ function getVncServiceStatusText(status: string | undefined): string { function getVncStatusClass(status: string | undefined): string { switch (status) { - case 'running': return 'bg-success' + case 'running': return 'bg-status-active' case 'starting': return 'bg-warning' case 'stopped': return 'bg-muted-foreground' default: @@ -2671,7 +2671,7 @@ function getRtspServiceStatusText(status: string | undefined): string { function getRtspStatusClass(status: string | undefined): string { switch (status) { - case 'running': return 'bg-success' + case 'running': return 'bg-status-active' case 'starting': return 'bg-warning' case 'stopped': return 'bg-muted-foreground' default: @@ -2761,7 +2761,7 @@ watch(isWindows, () => { - +
@@ -4362,7 +4362,7 @@ watch(isWindows, () => {
-
+
{{ getExtStatusText(extensions?.ttyd?.status) }}
@@ -4453,7 +4453,7 @@ watch(isWindows, () => {
-
+
{{ getExtStatusText(extensions?.gostc?.status) }}
@@ -4548,7 +4548,7 @@ watch(isWindows, () => {
-
+
{{ getExtStatusText(extensions?.easytier?.status) }}
@@ -4654,7 +4654,7 @@ watch(isWindows, () => {