精修 WebUI 第八轮:可复制 + 全屏 + 表格细节
- statValue 一键复制:PID 和 TraceId hover 显示复制按钮,点击调用 navigator.clipboard,带 toast 反馈与 fallback (textarea + execCommand) - setTextIfExists 改为只更新文本节点,保留子元素(如 .copyBtn 不被覆盖) - 截图区右上角加全屏按钮(hover 显示):调用 requestFullscreen,失败则新窗口打开;左下角浮层显示截图时间戳,毛玻璃背景 - 表格行:默认 ellipsis 截断,hover 时展开为多行换行 - cache-bust v10 → v11
This commit is contained in:
1 parent
857b33f413
commit
d1f153b373
3 files changed
+187
-6
No files matched your search
+6
-2
@@ -15,7 +15,7 @@
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v10" />
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v11" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
@@ -1154,6 +1154,10 @@
|
||||
</div>
|
||||
<div class="preview">
|
||||
<img id="liveShot" alt="实时截图预览" src="/pic/screenshot.png" />
|
||||
<span id="liveShotTs" class="previewTs" hidden></span>
|
||||
<button id="btnShotFullscreen" type="button" class="previewFullscreen" aria-label="全屏查看">
|
||||
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 8V3h5"/><path d="M21 8V3h-5"/><path d="M3 16v5h5"/><path d="M21 16v5h-5"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
<div class="hint" id="liveShotStatus">等待截图</div>
|
||||
</section>
|
||||
@@ -1244,6 +1248,6 @@
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="app.js?v=console-20260520-theme-v10"></script>
|
||||
<script src="app.js?v=console-20260520-theme-v11"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user