mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-08-06 10:23:57 +08:00
chore(vscode & download queue): 修复调试配置和下载面板交互问题
1. 给VSCode调试配置添加--no-sandbox参数以解决容器/权限问题 2. 修复下载队列面板收起时点击无响应的bug,调整隐藏状态的位移参数 3. 优化展开/收起切换逻辑,隐藏状态下点击会自动展开面板
This commit is contained in:
Vendored
+1
@@ -30,6 +30,7 @@
|
|||||||
// },
|
// },
|
||||||
"runtimeArgs": [
|
"runtimeArgs": [
|
||||||
"--remote-debugging-port=9229",
|
"--remote-debugging-port=9229",
|
||||||
|
"--no-sandbox",
|
||||||
"."
|
"."
|
||||||
],
|
],
|
||||||
"envFile": "${workspaceFolder}/.vscode/.debug.env",
|
"envFile": "${workspaceFolder}/.vscode/.debug.env",
|
||||||
|
|||||||
@@ -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="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="
|
:class="
|
||||||
isHidden
|
isHidden
|
||||||
? 'pointer-events-none translate-y-[calc(100%+1rem)] opacity-0'
|
? 'translate-y-[calc(100%-3.5rem)]'
|
||||||
: 'translate-y-0 opacity-100'
|
: 'translate-y-0'
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -183,6 +183,11 @@ const completedDownloads = computed(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const toggleExpand = () => {
|
const toggleExpand = () => {
|
||||||
|
if (isHidden.value) {
|
||||||
|
isHidden.value = false;
|
||||||
|
isExpanded.value = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
isExpanded.value = !isExpanded.value;
|
isExpanded.value = !isExpanded.value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user