diff --git a/dashboard/src/App.vue b/dashboard/src/App.vue index 6ce7b460a..579fec28a 100644 --- a/dashboard/src/App.vue +++ b/dashboard/src/App.vue @@ -7,9 +7,12 @@ - {{ toastStore.current.message }} +
+ + {{ toastStore.current.message }} +
@@ -32,6 +35,14 @@ const snackbarShow = computed({ } }) +const toastIcon = computed(() => ({ + success: 'mdi-check-circle-outline', + error: 'mdi-alert-circle-outline', + warning: 'mdi-alert-outline', + info: 'mdi-information-outline', + primary: 'mdi-information-outline' +})[toastStore.current?.color] || '') + onMounted(() => { const desktopBridge = window.astrbotDesktop if (!desktopBridge?.onTrayRestartBackend) { diff --git a/dashboard/src/components/extension/McpServersSection.vue b/dashboard/src/components/extension/McpServersSection.vue index 52d3591bf..3b35e21e5 100644 --- a/dashboard/src/components/extension/McpServersSection.vue +++ b/dashboard/src/components/extension/McpServersSection.vue @@ -292,7 +292,7 @@ - + {{ save_message }} diff --git a/dashboard/src/components/extension/SkillsSection.vue b/dashboard/src/components/extension/SkillsSection.vue index 77f1f5f7c..926e11736 100644 --- a/dashboard/src/components/extension/SkillsSection.vue +++ b/dashboard/src/components/extension/SkillsSection.vue @@ -746,7 +746,7 @@ v-model="snackbar.show" :timeout="3500" :color="snackbar.color" - elevation="24" + elevation="6" > {{ snackbar.message }} diff --git a/dashboard/src/components/extension/componentPanel/index.vue b/dashboard/src/components/extension/componentPanel/index.vue index 15d911a25..97e7cab8f 100644 --- a/dashboard/src/components/extension/componentPanel/index.vue +++ b/dashboard/src/components/extension/componentPanel/index.vue @@ -314,7 +314,7 @@ watch(viewMode, async (mode) => { /> - + {{ snackbar.message }} diff --git a/dashboard/src/plugins/vuetify.ts b/dashboard/src/plugins/vuetify.ts index e38fd388e..37b56f3d9 100644 --- a/dashboard/src/plugins/vuetify.ts +++ b/dashboard/src/plugins/vuetify.ts @@ -21,6 +21,10 @@ export default createVuetify({ VCard: { rounded: 'lg' }, + VSnackbar: { + elevation: 6, + rounded: 'lg' + }, VTextField: { rounded: 'lg' }, diff --git a/dashboard/src/scss/_override.scss b/dashboard/src/scss/_override.scss index be16623a0..79204dce4 100644 --- a/dashboard/src/scss/_override.scss +++ b/dashboard/src/scss/_override.scss @@ -20,6 +20,42 @@ html { .v-overlay.v-snackbar { --v-layout-left: 0px !important; --v-layout-right: 0px !important; + + .v-snackbar__wrapper { + min-height: 52px; + border-radius: 8px !important; + box-shadow: 0 10px 24px rgba(16, 24, 40, 0.16) !important; + } + + .v-snackbar__content { + padding: 14px 18px; + line-height: 1.35; + font-weight: 600; + } + + .v-snackbar__actions { + margin-inline-end: 6px; + } + + .v-snackbar__actions .v-btn { + color: inherit; + } + + .v-snackbar__wrapper.bg-success { + color: #ffffff !important; + background-color: #457c3c !important; + } +} + +.app-snackbar-message { + display: flex; + align-items: center; + gap: 14px; + + .v-icon { + flex: 0 0 auto; + opacity: 0.95; + } } .customizer-btn .icon { diff --git a/dashboard/src/views/ConfigPage.vue b/dashboard/src/views/ConfigPage.vue index 4f57eaf8e..2d1dc78ef 100644 --- a/dashboard/src/views/ConfigPage.vue +++ b/dashboard/src/views/ConfigPage.vue @@ -166,7 +166,7 @@ - + {{ save_message }} diff --git a/dashboard/src/views/ConversationPage.vue b/dashboard/src/views/ConversationPage.vue index 35c0c205a..41e633913 100644 --- a/dashboard/src/views/ConversationPage.vue +++ b/dashboard/src/views/ConversationPage.vue @@ -377,7 +377,7 @@ - + {{ message }} diff --git a/dashboard/src/views/ExtensionPage.vue b/dashboard/src/views/ExtensionPage.vue index 983c5e03a..df88f3df0 100644 --- a/dashboard/src/views/ExtensionPage.vue +++ b/dashboard/src/views/ExtensionPage.vue @@ -510,7 +510,7 @@ const updateDialogPluginLogo = computed(() => { - {{ save_message }} diff --git a/dashboard/src/views/SessionManagementPage.vue b/dashboard/src/views/SessionManagementPage.vue index 5c71b1b18..f7392dc0e 100644 --- a/dashboard/src/views/SessionManagementPage.vue +++ b/dashboard/src/views/SessionManagementPage.vue @@ -650,7 +650,7 @@ - + {{ snackbarText }} diff --git a/dashboard/src/views/persona/PersonaManager.vue b/dashboard/src/views/persona/PersonaManager.vue index 164640516..a241dbe1f 100644 --- a/dashboard/src/views/persona/PersonaManager.vue +++ b/dashboard/src/views/persona/PersonaManager.vue @@ -257,7 +257,7 @@ - + {{ message }}