From cf7eb04605fd4e0eab02c8f85851696165bc210e Mon Sep 17 00:00:00 2001 From: huaiyuan <1029848564@qq.com> Date: Mon, 11 Nov 2024 20:29:27 +0800 Subject: [PATCH] fix: fixed some ui bug --- packages/frontend/src/assets/esc-dark.svg | 3 + packages/frontend/src/assets/search-icon.svg | 4 +- .../frontend/src/components/ConfirmDialog.vue | 2 +- .../src/components/UpgradeComponent.vue | 19 +- packages/frontend/src/css/quasar-bex.sass | 555 ++++++++++++++++++ .../frontend/src/css/quasar.variables.scss | 5 +- packages/frontend/src/i18n/en-US/index.ts | 8 + packages/frontend/src/i18n/zh-CN/index.ts | 8 + packages/frontend/src/pages/LaunchPad.vue | 1 + .../src/pages/Search/FooterComponent.vue | 18 +- .../src/pages/Search/HomeComponent.vue | 10 +- .../frontend/src/pages/Search/IndexPage.vue | 11 +- .../frontend/src/pages/Search/TextSearch.vue | 10 +- .../frontend/src/pages/mobile/LaunchPad.vue | 44 +- 14 files changed, 661 insertions(+), 37 deletions(-) create mode 100644 packages/frontend/src/assets/esc-dark.svg create mode 100644 packages/frontend/src/css/quasar-bex.sass diff --git a/packages/frontend/src/assets/esc-dark.svg b/packages/frontend/src/assets/esc-dark.svg new file mode 100644 index 0000000..1dfcfcb --- /dev/null +++ b/packages/frontend/src/assets/esc-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/frontend/src/assets/search-icon.svg b/packages/frontend/src/assets/search-icon.svg index 093271a..6ec7c61 100644 --- a/packages/frontend/src/assets/search-icon.svg +++ b/packages/frontend/src/assets/search-icon.svg @@ -1,3 +1,3 @@ - - + + diff --git a/packages/frontend/src/components/ConfirmDialog.vue b/packages/frontend/src/components/ConfirmDialog.vue index f1b1f48..ba580c4 100644 --- a/packages/frontend/src/components/ConfirmDialog.vue +++ b/packages/frontend/src/components/ConfirmDialog.vue @@ -106,7 +106,7 @@ const onCancel = async () => { border-radius: 8px; } .message { - max-width: 310px; + max-width: calc(100% - 45px); font-size: 12px; line-height: 16px; } diff --git a/packages/frontend/src/components/UpgradeComponent.vue b/packages/frontend/src/components/UpgradeComponent.vue index 9a0b516..d04f67e 100644 --- a/packages/frontend/src/components/UpgradeComponent.vue +++ b/packages/frontend/src/components/UpgradeComponent.vue @@ -21,18 +21,18 @@ class="content" v-if="['completed', 'not_running'].includes(upgradeStore.state)" > -
Congratulations
-
Update successful
+
{{ t('upgrade.success_title') }}
+
{{ t('upgrade.success_message') }}
-
Upgrade failed
-
Upgrade failed,please try again
+
{{ t('upgrade.fail_title') }}
+
{{ t('upgrade.fail_message') }}
-
Upgrading System
-
Please wait a moment
+
{{ t('upgrade.running_title') }}
+
{{ t('upgrade.running_message') }}
- Confirm + {{ t('buttons.confirm') }}
@@ -48,6 +48,7 @@