diff --git a/static/admin.html b/static/admin.html
index b5a728f..d9138e1 100644
--- a/static/admin.html
+++ b/static/admin.html
@@ -135,16 +135,29 @@
+
+
+
+
+
-
@@ -499,7 +517,7 @@
class="text-xs font-bold px-2 py-0.5 rounded">
{{ card.recognition?.position || '未知' }}
-
+
Auto-Rotated
@@ -561,7 +579,7 @@
- 优化后 Prompt
+ 优化后 Prompt
{{ record.final_prompt }}
@@ -581,7 +599,7 @@
@@ -616,7 +634,7 @@
-
@@ -630,7 +648,7 @@
{{ file.name }}
- {{ file.count }} 项
+ {{ file.count }} 项
@@ -639,19 +657,19 @@
{{ file.name }}
- {{ formatBytes(file.size) }}
+ {{ formatBytes(file.size) }}
{{ file.name }}
- {{ formatBytes(file.size) }}
+ {{ formatBytes(file.size) }}
+ class="absolute top-2 right-2 w-8 h-8 bg-red-500 text-white rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-all transform scale-90 group-hover:scale-100 hover:bg-red-600 shadow-sm z-10">
@@ -927,6 +945,7 @@
setup() {
// State
const isLoggedIn = ref(false);
+ const isSidebarOpen = ref(false);
const password = ref('');
const loginError = ref('');
const currentTab = ref('dashboard');
@@ -1400,6 +1419,7 @@
const switchTab = (tab) => {
const prevTab = currentTab.value;
currentTab.value = tab;
+ isSidebarOpen.value = false; // Close sidebar on mobile
// GPU Monitor Logic
if (tab === 'gpu') {
@@ -1696,7 +1716,7 @@
});
return {
- isLoggedIn, password, loginError, login, logout,
+ isLoggedIn, isSidebarOpen, password, loginError, login, logout,
currentTab, switchTab, history, files, currentPath,
enterDir, navigateUp, deleteFile, triggerCleanup,
viewResult, previewImage, isImage, previewUrl,
|