refactor(重构提升): 优化缓存验签与界面
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-09-29 00:13:55 +08:00
1 parent 4d0a909de5
commit b85d7457c1
13 files changed
+98 -42

No files matched your search

+9 -3
View File
@@ -48,6 +48,12 @@ select {
font: inherit;
}
select,
option {
text-align: left;
text-align-last: left;
}
button {
border: 1px solid var(--line-strong);
background: #ffffff;
@@ -135,7 +141,6 @@ a:focus-visible {
border-radius: 0;
background: #fff;
color: #1f2428;
text-align: center;
}
.editor-paragraph > .editor-field,
@@ -650,7 +655,8 @@ button:not(:disabled):hover {
inset: 0;
display: flex;
align-items: center;
justify-content: center;
justify-content: flex-start;
padding-left: 4px;
padding-right: 12px;
pointer-events: none;
}
@@ -789,7 +795,6 @@ button:not(:disabled):hover {
height: var(--control-height);
padding: 0 6px;
vertical-align: middle;
text-align: center;
font: inherit;
border: 1px solid var(--line);
border-radius: 0;
@@ -802,6 +807,7 @@ button:not(:disabled):hover {
}
.convert-table input {
text-align: center;
font-variant-numeric: tabular-nums;
}
+2 -1
View File
@@ -2912,7 +2912,7 @@ function releasePageResources() {
const images = new Set(), fonts = new Set();
for (const page of state.pageCache.values()) {
for (const name of page.imageNames) images.add(name);
for (const font of page.fonts) fonts.add(font.name);
for (const font of page.fonts || []) fonts.add(font.name);
}
for (const [name, image] of state.svgImages) {
if (!images.has(name)) {
@@ -5495,6 +5495,7 @@ function trimPageCache() {
}
}
}
if (!state.pageInFlight.size) releasePageResources();
}
async function loadSVGFonts(fonts, openSeq) {