精修 WebUI 第十轮:交互终章
- header 滚动时加 isScrolled 类:阴影提一档显得"浮起",区分内容区 - 键盘快捷键:⌘S/Ctrl+S 保存配置,⌘Enter/Ctrl+Enter 启动运行;尊重按钮 disabled 状态 - 通用 tooltip 系统:[data-tooltip] + 可选 data-tooltip-pos="bottom",带小箭头与毛玻璃;移动端禁用避免触摸浮悬 - btnTheme / btnShotFullscreen / 复制按钮 全部接入 tooltip - cache-bust v12 → v13
This commit is contained in:
1 parent
0a2d67afb4
commit
8b8e3129e5
3 files changed
+131
-4
No files matched your search
+4
-4
@@ -15,7 +15,7 @@
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v12" />
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v13" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
@@ -86,7 +86,7 @@
|
||||
</span>
|
||||
保存配置
|
||||
</button>
|
||||
<button id="btnTheme" class="btn btnGhost btnIconOnly" type="button" aria-label="切换主题" title="切换主题">
|
||||
<button id="btnTheme" class="btn btnGhost btnIconOnly" type="button" aria-label="切换主题" data-tooltip="切换主题" data-tooltip-pos="bottom">
|
||||
<span class="btnIcon themeIconSun" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></svg>
|
||||
</span>
|
||||
@@ -1156,7 +1156,7 @@
|
||||
<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="全屏查看">
|
||||
<button id="btnShotFullscreen" type="button" class="previewFullscreen" aria-label="全屏查看" data-tooltip="全屏查看" data-tooltip-pos="bottom">
|
||||
<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>
|
||||
@@ -1249,6 +1249,6 @@
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="app.js?v=console-20260520-theme-v12"></script>
|
||||
<script src="app.js?v=console-20260520-theme-v13"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user