v3.2.3: 工作空间面板改为常驻显示,固定宽度480px,不可关闭不可拖拽

This commit is contained in:
thzxx
2026-04-08 12:22:37 +08:00
parent 6a74b8b0d2
commit f9eca2e524
4 changed files with 8 additions and 103 deletions
+3 -15
View File
@@ -20,7 +20,7 @@
</aside>
<!-- ═══════════════ 主内容区 ═══════════════ -->
<div class="main-wrap" id="mainWrap">
<div class="main-wrap with-workspace" id="mainWrap">
<!-- ═══════════════ 顶部导航 ═══════════════ -->
<header class="app-header">
@@ -65,12 +65,6 @@
<circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>
</svg>
</button>
<button class="icon-btn" id="btnWorkspace" title="工作空间">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/>
<rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/>
</svg>
</button>
<button class="icon-btn" id="btnSettings" title="设置">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="3"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/>
@@ -173,20 +167,14 @@
</div>
</div><!-- /.main-wrap -->
<!-- ═══════════════ 工作空间面板(右侧)═══════════════ -->
<aside class="workspace-panel" id="workspacePanel" style="display:none;">
<div class="ws-resizer" id="wsResizer" title="拖拽调整宽度"></div>
<!-- ═══════════════ 工作空间面板(右侧,常驻显示)═══════════════ -->
<aside class="workspace-panel" id="workspacePanel">
<div class="ws-header">
<span class="ws-title">🖥️ 工作空间</span>
<div class="ws-tabs">
<button class="ws-header-tab active" id="wsTabTerminal">💻 命令行</button>
<button class="ws-header-tab" id="wsTabFiles">📁 文件</button>
</div>
<button class="icon-btn ws-toggle-btn" id="btnWorkspaceClose" title="收起面板">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="9 18 15 12 9 6"/>
</svg>
</button>
</div>
<!-- 终端 Tab -->