feat(ui): 更新入口移到状态栏右下角「检查更新」,弹窗精简并居中(v2.6.3)

老板看实际界面后提的三点:
  1. 升级弹窗里「当前版本 v2.6.2」那行去掉
  2. 弹窗按钮居中
  3. 工具条右上角的更新图标不要了,改到右下角、蓝色文字链接「检查更新」

改动:
  · index.html:删掉 <button id="btn-update">(工具条图标);
    在 .statusbar 的 .st-right 末尾加 <a class="st-link" id="btn-update">检查更新</a>
  · style.css:.st-link 用主题色 var(--accent)(浅色 #2f6feb / 深色 #4f8ef7),hover 下划线,
    .busy 时降透明度并禁用点击
  · tauri-bridge.js:
      - 「已是最新版本」弹窗不再带 detail(去掉当前版本行)
      - 「发现新版本」的说明里也不再写「当前 vX →」,只留发布时间 + 更新说明
      - 模态框按钮行 justify-content: flex-end → center(Tauri 下所有模态统一)
      - 状态栏是 <a>,没有 disabled,改用 updating 标志 + .busy 类

版本 2.6.2 → 2.6.3,已构建并发布:
  · xymd_2.6.3.exe(2.21 MB)+ .sig
  · latest.json 指向新包,签名按 minisign 规则实验通过
This commit is contained in:
Jidekin committed 2026-11-20 10:42:30 +08:00
1 parent b0e2d91376
commit 9222e79760
8 files changed
+28 -29

No files matched your search

+4
View File
@@ -699,6 +699,10 @@ html[data-theme="dark"] .markdown-body code { color: #f0a1c0; }
color: var(--text-faint);
}
.st-left, .st-right { display: flex; align-items: center; gap: 8px; }
/* 状态栏里的「检查更新」文字链接 */
.st-link { color: var(--accent); cursor: pointer; text-decoration: none; }
.st-link:hover { text-decoration: underline; }
.st-link.busy { opacity: .5; pointer-events: none; }
.st-file { color: var(--text-dim); max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-dirty {
padding: 1px 6px;