fix(frontend): 终端弹框适配与审计实时监控布局优化

- 修复 LiveMonitorDialog 连接中卡死:WebSocket 先连、延后挂载 xterm
- 审计实时监控弹框对齐 WebSSH 布局:92vw 宽、520px 高、支持全屏
- 修复服务器终端弹框右侧黑边:fit 后同步 PTY resize,延迟二次 fit
- 抽取 xterm-utils 公共适配逻辑,统一 ResizeObserver 处理
This commit is contained in:
Logan.Li committed 2026-06-25 23:31:44 +08:00
1 parent be2a377f01
commit bfd6431b9d
4 files changed
+228 -126

No files matched your search

+10
View File
@@ -718,6 +718,16 @@ button {
animation: progress-indeterminate 1.5s ease-in-out infinite;
}
/* ===== xterm.js 终端铺满容器,避免右侧黑边 // Logan.Li ===== */
.xterm-terminal-host {
width: 100%;
overflow: hidden;
background: #0a0e14;
}
.xterm-terminal-host .xterm {
height: 100%;
}
/* ===== Reduced motion support ===== */
@media (prefers-reduced-motion: reduce) {
*,