From 367828f1f4f9407ea177be98b6e68e5920c0f28e Mon Sep 17 00:00:00 2001 From: shenmo Date: Sat, 18 Jul 2026 22:04:23 +0800 Subject: [PATCH] =?UTF-8?q?chore(vscode=20&=20download=20queue):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B0=83=E8=AF=95=E9=85=8D=E7=BD=AE=E5=92=8C?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=9D=A2=E6=9D=BF=E4=BA=A4=E4=BA=92=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 给VSCode调试配置添加--no-sandbox参数以解决容器/权限问题 2. 修复下载队列面板收起时点击无响应的bug,调整隐藏状态的位移参数 3. 优化展开/收起切换逻辑,隐藏状态下点击会自动展开面板 --- .vscode/launch.json | 1 + src/components/DownloadQueue.vue | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index a02acbfe..0a33297b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -30,6 +30,7 @@ // }, "runtimeArgs": [ "--remote-debugging-port=9229", + "--no-sandbox", "." ], "envFile": "${workspaceFolder}/.vscode/.debug.env", diff --git a/src/components/DownloadQueue.vue b/src/components/DownloadQueue.vue index 4e26685a..b75b23bf 100644 --- a/src/components/DownloadQueue.vue +++ b/src/components/DownloadQueue.vue @@ -4,8 +4,8 @@ class="fixed inset-x-4 bottom-4 z-40 rounded-3xl border border-slate-200/70 bg-white shadow-2xl transition-all duration-200 dark:border-slate-800/70 dark:bg-slate-900 sm:left-auto sm:right-6 sm:w-96" :class=" isHidden - ? 'pointer-events-none translate-y-[calc(100%+1rem)] opacity-0' - : 'translate-y-0 opacity-100' + ? 'translate-y-[calc(100%-3.5rem)]' + : 'translate-y-0' " >
{ }); const toggleExpand = () => { + if (isHidden.value) { + isHidden.value = false; + isExpanded.value = true; + return; + } isExpanded.value = !isExpanded.value; };