feat(更新应用): 统一更新按钮主题样式
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-10-17 18:54:25 +08:00
1 parent eaefd730ae
commit ec2602746c
3 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@
<button id="exportButton" class="button" type="button" data-short="多" disabled>文档</button> <button id="exportButton" class="button" type="button" data-short="多" disabled>文档</button>
</div> </div>
</div> </div>
<button id="refreshAppButton" class="button app-update" type="button" hidden>更新</button> <button id="refreshAppButton" class="button app-update" type="button" data-short="更" hidden>更新</button>
</header> </header>
<div id="editorTools" class="editor-toolbar" hidden> <div id="editorTools" class="editor-toolbar" hidden>
<div class="editor-group editor-actions"> <div class="editor-group editor-actions">
+5 -1
View File
@@ -460,7 +460,6 @@ a:focus-visible {
.app-update { .app-update {
flex: 0 0 auto; flex: 0 0 auto;
align-self: center; align-self: center;
width: 62px;
margin: 0 10px 0 0; margin: 0 10px 0 0;
border-color: var(--accent); border-color: var(--accent);
background: #e4f3ef; background: #e4f3ef;
@@ -470,6 +469,7 @@ a:focus-visible {
} }
.app-update:not(:disabled):hover { .app-update:not(:disabled):hover {
border-color: var(--accent);
background: #f2faf7; background: #f2faf7;
} }
@@ -4138,6 +4138,10 @@ audio.page-media {
} }
@media (max-width: 640px) { @media (max-width: 640px) {
.app-update {
margin-right: 8px;
}
:root { :root {
--bar-height: 42px; --bar-height: 42px;
--control-height: 28px; --control-height: 28px;
+1 -1
View File
@@ -4301,7 +4301,7 @@ async function refreshApplication() {
} }
setBusy(true, "正在更新应用", null, "正在更新应用"); setBusy(true, "正在更新应用", null, "正在更新应用");
el.refreshAppButton.disabled = true; el.refreshAppButton.disabled = true;
el.refreshAppButton.textContent = "更新中"; el.refreshAppButton.textContent = "更新";
const panels = document.querySelectorAll(".toolbar-frame, .workspace"); const panels = document.querySelectorAll(".toolbar-frame, .workspace");
panels.forEach((panel) => { panel.inert = true; }); panels.forEach((panel) => { panel.inert = true; });
try { try {