From 3b38b9d86bde8a4e9a562baa0f5fa11e5afbdf16 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=98=AD?= <81747598+lan-yonghui@users.noreply.github.com>
Date: Tue, 17 Dec 2024 20:46:11 +0800
Subject: [PATCH] feat: Optimize style and description (#7393)
---
.../src/views/login/components/login-form.vue | 7 +-
frontend/src/views/setting/panel/index.vue | 2 +-
frontend/src/views/toolbox/clean/index.vue | 366 ++++++++++++------
3 files changed, 249 insertions(+), 126 deletions(-)
diff --git a/frontend/src/views/login/components/login-form.vue b/frontend/src/views/login/components/login-form.vue
index 3a2d7e2e1..a7a3d5862 100644
--- a/frontend/src/views/login/components/login-form.vue
+++ b/frontend/src/views/login/components/login-form.vue
@@ -52,9 +52,14 @@
+
+ English
+
中文(简体)
中文(繁體)
- English
+
+ English
+
diff --git a/frontend/src/views/setting/panel/index.vue b/frontend/src/views/setting/panel/index.vue
index 0a5ce9a79..2d7d8b601 100644
--- a/frontend/src/views/setting/panel/index.vue
+++ b/frontend/src/views/setting/panel/index.vue
@@ -2,7 +2,7 @@
-
+
diff --git a/frontend/src/views/toolbox/clean/index.vue b/frontend/src/views/toolbox/clean/index.vue
index 06f76f447..ae04a35e2 100644
--- a/frontend/src/views/toolbox/clean/index.vue
+++ b/frontend/src/views/toolbox/clean/index.vue
@@ -137,14 +137,16 @@
-
-
- {{ $t('clean.totalScan') }} {{ computeSize(totalSize) }}
-
-
-
- {{ $t('clean.selectScan') }} {{ computeSize(selectSize) }}
+
+
+
+ {{ $t('clean.totalScan') }} {{ computeSize(totalSize) }}
+
+
+ {{ $t('clean.selectScan') }} {{ computeSize(selectSize) }}
+
+
@@ -152,124 +154,191 @@
-
-
-
-
-
- {{ load18n(data.label) }}
-
-
- {{ computeSize(data.size) }}
-
-
- {{ loadTag(node, data) }}
-
-
-
-
+
+
+
+
+
+
+
+ {{ load18n(data.label) }}
+
+
+ {{ computeSize(data.size) }}
+
+
+
+ {{ loadTag(node, data) }}
+
+
+
+
+
+
-
-
-
-
- {{ load18n(data.label) }}
-
-
- {{ computeSize(data.size) }}
-
-
- {{ loadTag(node, data) }}
-
-
-
-
-
-
-
-
- {{ load18n(data.label) }}
-
-
- {{ computeSize(data.size) }}
-
-
- {{ loadTag(node, data) }}
-
-
-
-
-
-
-
-
- {{ load18n(data.label) }}
-
-
- {{ computeSize(data.size) }}
-
-
- {{ loadTag(node, data) }}
-
-
-
-
-
-
-
-
- {{ load18n(data.label) }}
-
-
- {{ computeSize(data.size) }}
-
-
- {{ loadTag(node, data) }}
-
-
-
-
-
+
+
+
+
+
+ {{ load18n(data.label) }}
+
+
+ {{ computeSize(data.size) }}
+
+
+
+ {{ loadTag(node, data) }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ load18n(data.label) }}
+
+
+ {{ computeSize(data.size) }}
+
+
+
+ {{ loadTag(node, data) }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ load18n(data.label) }}
+
+
+ {{ computeSize(data.size) }}
+
+
+
+ {{ loadTag(node, data) }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ load18n(data.label) }}
+
+
+ {{ computeSize(data.size) }}
+
+
+
+ {{ loadTag(node, data) }}
+
+
+
+
+
+
+
+
@@ -642,4 +711,53 @@ onMounted(() => {
float: right;
margin-right: 15px;
}
+
+.tree-container {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ overflow: auto;
+}
+
+.tree-collapse {
+ flex: 1;
+ overflow: hidden;
+}
+
+.responsive-tree {
+ width: 100%;
+ max-height: 100%;
+ overflow: auto;
+}
+
+.tree-node {
+ display: flex;
+ align-items: center;
+ justify-content: start;
+ gap: 1rem;
+ width: 100%;
+ overflow: hidden;
+}
+
+.tree-node-label {
+ flex-shrink: 0;
+ max-width: 60%;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.tree-node-size {
+ flex-shrink: 0;
+ max-width: 25%;
+ white-space: nowrap;
+}
+
+.tree-node-tooltip {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: inline-block;
+}