From c9e05f98c428d5a61f3293d74566de1618536a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=A4=E5=A4=A7=E7=BE=8A?= Date: Sun, 12 May 2024 04:22:17 +0800 Subject: [PATCH 01/13] chore: Optimize upload indicator display (#3202) --- frontend/src/components/prompts/UploadFiles.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/components/prompts/UploadFiles.vue b/frontend/src/components/prompts/UploadFiles.vue index 48a9e1d4..29a0d565 100644 --- a/frontend/src/components/prompts/UploadFiles.vue +++ b/frontend/src/components/prompts/UploadFiles.vue @@ -117,3 +117,13 @@ export default { }, }; + + \ No newline at end of file From e336a25ad29ed8b956169d426992860a877ee551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=A4=E5=A4=A7=E7=BE=8A?= Date: Sun, 12 May 2024 04:27:06 +0800 Subject: [PATCH 02/13] fix: current folder name in page title (#3200) --- frontend/src/views/Files.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Files.vue b/frontend/src/views/Files.vue index 2e82fc6b..4d5879cb 100644 --- a/frontend/src/views/Files.vue +++ b/frontend/src/views/Files.vue @@ -45,6 +45,8 @@ import { useI18n } from "vue-i18n"; import { useRoute } from "vue-router"; import FileListing from "@/views/files/FileListing.vue"; import { StatusError } from "@/api/utils"; +import { name } from "../utils/constants"; + const Editor = defineAsyncComponent(() => import("@/views/files/Editor.vue")); const Preview = defineAsyncComponent(() => import("@/views/files/Preview.vue")); @@ -148,7 +150,8 @@ const fetchData = async () => { } fileStore.updateRequest(res); - document.title = `${res.name} - ${document.title}`; + document.title = `${res.name} - ${t("files.files")} - ${name}`; + } catch (err) { if (err instanceof Error) { error.value = err; From 4c5b612cb2563817f9da50413c7cf9e89b4c4d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=A4=E5=A4=A7=E7=BE=8A?= Date: Sun, 19 May 2024 18:00:10 +0800 Subject: [PATCH 03/13] fix: shell window size (#3198) --- frontend/src/css/_shell.css | 16 +++++++++++++--- frontend/src/css/_variables.css | 4 ++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/frontend/src/css/_shell.css b/frontend/src/css/_shell.css index 3fca2d7d..1d2813a9 100644 --- a/frontend/src/css/_shell.css +++ b/frontend/src/css/_shell.css @@ -6,15 +6,22 @@ background: var(--surfacePrimary); color: var(--textPrimary); z-index: 9999; - background: rgba(127, 127, 127, 0.1); + background: var(--dividerSecondary); transition: 0.2s ease background; cursor: ns-resize; touch-action: none; user-select: none; + width: 100%; +} + +.shell__divider{ + background: rgba(127, 127, 127, 0.3); + width: 100%; + height: 8px; } .shell__divider:hover { - background: rgba(127, 127, 127, 0.4); + background: rgba(127, 127, 127, 0.9); } .shell__content { @@ -34,7 +41,7 @@ top: 0px; left: 0px; z-index: 9998; - background-color: rgba(0, 0, 0, 0.05); + background-color: var(--dividerPrimary); } body.rtl .shell-content { @@ -62,6 +69,8 @@ body.rtl .shell-content { font-size: inherit; } + + .shell__prompt { width: 1.2rem; } @@ -75,4 +84,5 @@ body.rtl .shell-content { font-family: inherit; white-space: pre-wrap; width: 100%; + color:var(--textSecondary); } diff --git a/frontend/src/css/_variables.css b/frontend/src/css/_variables.css index 468b08dd..a56285ba 100644 --- a/frontend/src/css/_variables.css +++ b/frontend/src/css/_variables.css @@ -31,6 +31,8 @@ --hover: rgba(0, 0, 0, 0.1); --borderPrimary: rgba(0, 0, 0, 0.1); --borderSecondary: rgba(0, 0, 0, 0.2); + --dividerPrimary: rgba(255, 255, 255, 0.4); + --dividerSecondary: rgba(255, 255, 255, 0.9); } :root.dark { @@ -51,4 +53,6 @@ --hover: rgba(255, 255, 255, 0.1); --borderPrimary: rgba(255, 255, 255, 0.05); --borderSecondary: rgba(255, 255, 255, 0.15); + --dividerPrimary: rgba(30, 30, 30, 0.4); + --dividerSecondary:rgba(30, 30, 30, 0.6); } From 3b48f75301287fe94cbbacff184b4db03f37f7ea Mon Sep 17 00:00:00 2001 From: kloon15 Date: Sun, 19 May 2024 12:00:31 +0200 Subject: [PATCH 04/13] fix: add overlay for sidebar on mobile (#3197) --- frontend/src/components/Sidebar.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue index 0f442056..13329c61 100644 --- a/frontend/src/components/Sidebar.vue +++ b/frontend/src/components/Sidebar.vue @@ -1,4 +1,5 @@