fix: 修复工作空间面板协调性问题
- 头部 Tab 改用 ws-header-tab class,与终端 Tab 的 ws-tab 解除冲突 - 终端 Tab bar 补充完整基础样式(background、border、cursor、transition) - 补充 .ws-file-toolbar 的 min-height 和按钮 flex-shrink - 移除未使用的 WorkspaceFileEntry、logWarn import - resizer 添加 title 提示
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
* 包含命令行和文件两个 Tab
|
||||
*/
|
||||
|
||||
import { logInfo, logError, logDebug, logWarn } from '../services/log-service.js';
|
||||
import type { WorkspaceFileEntry } from '../types.js';
|
||||
import { logInfo, logError, logDebug } from '../services/log-service.js';
|
||||
|
||||
// ── 状态 ──
|
||||
interface TerminalSession {
|
||||
@@ -473,8 +472,12 @@ export function renderPanel(): void {
|
||||
const termTab = document.querySelector('#wsTabTerminal') as HTMLElement;
|
||||
const filesTab = document.querySelector('#wsTabFiles') as HTMLElement;
|
||||
|
||||
if (termTab) termTab.classList.toggle('active', activeTab === 'terminal');
|
||||
if (filesTab) filesTab.classList.toggle('active', activeTab === 'files');
|
||||
if (termTab) {
|
||||
termTab.classList.toggle('active', activeTab === 'terminal');
|
||||
}
|
||||
if (filesTab) {
|
||||
filesTab.classList.toggle('active', activeTab === 'files');
|
||||
}
|
||||
|
||||
const termContent = document.querySelector('#wsTerminalContent') as HTMLElement;
|
||||
const filesContent = document.querySelector('#wsFilesContent') as HTMLElement;
|
||||
|
||||
Reference in New Issue
Block a user