diff --git a/assets/webui/ofdgo.css b/assets/webui/ofdgo.css index 2ce1d09..9cced01 100644 --- a/assets/webui/ofdgo.css +++ b/assets/webui/ofdgo.css @@ -845,6 +845,11 @@ button:not(:disabled):hover { text-align: left; } +.convert-table td[data-status] { + white-space: pre; + font-variant-numeric: tabular-nums; +} + .convert-table th:nth-child(2), .convert-table th:nth-child(3), .convert-table th:nth-child(4) { @@ -1107,6 +1112,9 @@ button:not(:disabled):hover { color: var(--text-muted); font-size: 12px; } + .convert-table td[data-status] { + grid-template-rows: auto minmax(var(--control-height), auto); + } .convert-table input, .convert-format, .convert-format select { width: 100%; } diff --git a/assets/webui/ofdgo.js b/assets/webui/ofdgo.js index 5419c41..d2ce737 100644 --- a/assets/webui/ofdgo.js +++ b/assets/webui/ofdgo.js @@ -8276,7 +8276,7 @@ function updateBatchProgress() { if (item.status !== "running" || !item.progress) continue; const progress = item.progress.progress; const stage = progress.phase?.includes("compress") ? "压缩" : progress.phase?.startsWith("write") ? "写入" : { open: "读取", pages: "解析", convert: "转换", prepare: "准备", fonts: "字体", export: "导出" }[progress.phase] || "处理"; - batchStatus(item, "running", `${stage}${progress.total > 0 ? ` ${progress.completed}/${progress.total}` : ""}`); + batchStatus(item, "running", `${stage}${progress.total > 0 ? `\n${progress.completed}/${progress.total}` : ""}`); } if (!batch.progress) { const completed = batch.jobs.filter(item => ["done", "ready", "unchanged", "failed", "canceled"].includes(item.status)).length;