diff --git a/ui_template/sheet/ui_template_sheet_render.ts b/ui_template/sheet/ui_template_sheet_render.ts index 2ef7da45..72737824 100644 --- a/ui_template/sheet/ui_template_sheet_render.ts +++ b/ui_template/sheet/ui_template_sheet_render.ts @@ -240,7 +240,11 @@ export function renderSheet(state: RenderState): HTMLElement { cols.forEach((col, j) => { const td = bodyCell(`t:${total.id}`, col, j, shown(state.result.합계[total.id]?.[col.id])); const formula = totalFormula(total, col); - if (formula) td.title = formulaLabel(formula, names); + if (formula) + td.title = td.classList.contains("is-error") + ? `${td.title} +${formulaLabel(formula, names)}` + : formulaLabel(formula, names); tr.append(td); }); return tr;