From f650a9205dee0be4991aaa8ed7add0bb1d0f7ee0 Mon Sep 17 00:00:00 2001
From: Soulter <905617992@qq.com>
Date: Tue, 10 Jun 2025 22:43:58 +0800
Subject: [PATCH] =?UTF-8?q?perf(webui):=20=E4=BC=98=E5=8C=96=E6=89=8B?=
=?UTF-8?q?=E6=9C=BA=E7=AB=AF=E7=9A=84=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../full/vertical-header/VerticalHeader.vue | 110 ++++++++++++++----
1 file changed, 89 insertions(+), 21 deletions(-)
diff --git a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue
index 565692640..a3546f4bb 100644
--- a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue
+++ b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue
@@ -254,7 +254,7 @@ commonStore.getStartTime();
variant="flat" @click.stop="customizer.SET_MINI_SIDEBAR(!customizer.mini_sidebar)" size="small">
mdi-menu
-
mdi-menu
@@ -263,15 +263,15 @@ commonStore.getStartTime();
mdi-menu
-
-
AstrBot
-
-
{{ botCurrVersion }}
+
+ AstrBot
+ {{ botCurrVersion }}
-
+
+
AstrBot 有新版本!
@@ -280,24 +280,28 @@ commonStore.getStartTime();
-
-
+
+
mdi-weather-night
mdi-white-balance-sunny
-
+
+
-
- 更新
+
+ mdi-update
+ 更新
-
+
更新 AstrBot
+
+ mdi-close
+
@@ -308,10 +312,9 @@ commonStore.getStartTime();
{{ updateStatus }}
-
-
@@ -422,11 +425,12 @@ commonStore.getStartTime();
-
+
+
-
- mdi-account
- 账户
+
+ mdi-account
+ 账户
@@ -582,4 +586,68 @@ commonStore.getStartTime();
.account-dialog .v-avatar:hover {
transform: scale(1.05);
}
+
+/* 响应式布局样式 */
+.logo-container {
+ margin-left: 16px;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
+.mobile-logo {
+ margin-left: 8px;
+ gap: 4px;
+}
+
+.logo-text {
+ font-size: 24px;
+ font-weight: 1000;
+}
+
+.logo-text-light {
+ font-weight: normal;
+}
+
+.version-text {
+ font-size: 12px;
+ color: var(--v-theme-secondaryText);
+}
+
+.action-btn {
+ margin-right: 6px;
+}
+
+/* 移动端对话框标题样式 */
+.mobile-card-title {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+/* 移动端样式优化 */
+@media (max-width: 600px) {
+ .logo-text {
+ font-size: 20px;
+ }
+
+ .action-btn {
+ margin-right: 4px;
+ min-width: 32px !important;
+ width: 32px;
+ }
+
+ .v-card-title {
+ padding: 12px 16px;
+ }
+
+ .v-card-text {
+ padding: 16px;
+ }
+
+ .v-tabs .v-tab {
+ padding: 0 10px;
+ font-size: 0.9rem;
+ }
+}
\ No newline at end of file