chore(vscode & download queue): 修复调试配置和下载面板交互问题

1. 给VSCode调试配置添加--no-sandbox参数以解决容器/权限问题
2. 修复下载队列面板收起时点击无响应的bug,调整隐藏状态的位移参数
3. 优化展开/收起切换逻辑,隐藏状态下点击会自动展开面板
This commit is contained in:
2026-07-18 22:04:23 +08:00
parent 70250acc76
commit 367828f1f4
2 changed files with 8 additions and 2 deletions
+1
View File
@@ -30,6 +30,7 @@
// },
"runtimeArgs": [
"--remote-debugging-port=9229",
"--no-sandbox",
"."
],
"envFile": "${workspaceFolder}/.vscode/.debug.env",
+7 -2
View File
@@ -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'
"
>
<div
@@ -183,6 +183,11 @@ const completedDownloads = computed(() => {
});
const toggleExpand = () => {
if (isHidden.value) {
isHidden.value = false;
isExpanded.value = true;
return;
}
isExpanded.value = !isExpanded.value;
};