From 041c9caf317f35211bd43dc39664ed033a34c1f2 Mon Sep 17 00:00:00 2001
From: syuilo <4439005+syuilo@users.noreply.github.com>
Date: Sun, 20 Oct 2024 16:38:27 +0900
Subject: [PATCH] :art:
---
packages/frontend/src/components/MkDrive.vue | 55 ++++++++++++++------
1 file changed, 38 insertions(+), 17 deletions(-)
diff --git a/packages/frontend/src/components/MkDrive.vue b/packages/frontend/src/components/MkDrive.vue
index 05f3354813..910b73c798 100644
--- a/packages/frontend/src/components/MkDrive.vue
+++ b/packages/frontend/src/components/MkDrive.vue
@@ -30,16 +30,6 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ folder.name }}
-
-
-
-
-
-
-
-
-
-
{ sortModeSelect.value = '+createdAt'; },
+ active: sortModeSelect.value === '+createdAt',
+ }, {
+ text: `${i18n.ts.registeredDate} (${i18n.ts.ascendingOrder})`,
+ icon: 'ti ti-sort-ascending-letters',
+ action: () => { sortModeSelect.value = '-createdAt'; },
+ active: sortModeSelect.value === '-createdAt',
+ }, {
+ text: `${i18n.ts.size} (${i18n.ts.descendingOrder})`,
+ icon: 'ti ti-sort-descending-letters',
+ action: () => { sortModeSelect.value = '+size'; },
+ active: sortModeSelect.value === '+size',
+ }, {
+ text: `${i18n.ts.size} (${i18n.ts.ascendingOrder})`,
+ icon: 'ti ti-sort-ascending-letters',
+ action: () => { sortModeSelect.value = '-size'; },
+ active: sortModeSelect.value === '-size',
+ }, {
+ text: `${i18n.ts.name} (${i18n.ts.descendingOrder})`,
+ icon: 'ti ti-sort-descending-letters',
+ action: () => { sortModeSelect.value = '+name'; },
+ active: sortModeSelect.value === '+name',
+ }, {
+ text: `${i18n.ts.name} (${i18n.ts.ascendingOrder})`,
+ icon: 'ti ti-sort-ascending-letters',
+ action: () => { sortModeSelect.value = '-name'; },
+ active: sortModeSelect.value === '-name',
+ }],
+ });
+
if (folder.value) {
menu.push({
text: i18n.ts.renameFolder,
@@ -778,13 +804,8 @@ onBeforeUnmount(() => {
}
}
-.navSort {
- display: inline-block;
- margin-left: auto;
- padding: 0 12px;
-}
-
.navMenu {
+ margin-left: auto;
padding: 0 12px;
}