style(입출고): 달력과 발주 목록 글자를 다시 90%로

달력 clamp(243px, 18.63vw, 356px), 발주 목록 글자는 원래의 81%.
상태 열까지 표 안에 들어오도록 줄인다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 15:08:01 +09:00
parent 44779c3979
commit f3cb198681
8 changed files with 22 additions and 20 deletions
+3 -3
View File
@@ -82,12 +82,12 @@ function check(name, cond, extra) {
const headStyles = await p.locator(".io-table thead th").evaluateAll(function (els) {
return els.map(function (el) { const c = getComputedStyle(el); return [c.textAlign, c.fontWeight, c.fontSize, c.backgroundColor].join("|"); });
});
check("머리글 모양", headStyles.length > 0 && headStyles.every(function (s) { return /^center\|700\|11\.98\d*px\|rgb\(242, 242, 242\)$/.test(s); }), headStyles);
check("머리글 모양", headStyles.length > 0 && headStyles.every(function (s) { return /^center\|700\|10\.7\d*px\|rgb\(242, 242, 242\)$/.test(s); }), headStyles);
const sizeOf = function (sel) { return p.locator(sel).first().evaluate(function (el) { return getComputedStyle(el).fontSize; }); };
check("표 글자 90%", (await sizeOf(".io-table tbody td")) === "11.7px" && (await sizeOf(".io-table .erp-row-sub")) === "10.8px" && (await sizeOf(".io-table .io-progress-pct")) === "10.8px" && (await sizeOf(".io-table .io-badge")) === "10.35px");
check("표 글자 81%", (await sizeOf(".io-table tbody td")) === "10.53px" && (await sizeOf(".io-table .erp-row-sub")) === "9.72px" && (await sizeOf(".io-table .io-progress-pct")) === "9.72px" && (await sizeOf(".io-table .io-badge")) === "9.32px" && (await sizeOf(".io-table .io-over-sub")) === "8.91px" && (await sizeOf(".io-table .io-badge-note")) === "8.91px");
await p.setViewportSize({ width: 2000, height: 900 });
await p.waitForTimeout(100);
check("달력 최대 396px(440px × 90%)", Math.round((await p.locator(".io-side").boundingBox()).width) === 396, await p.locator(".io-side").boundingBox());
check("달력 최대 356px(440px × 81%)", Math.round((await p.locator(".io-side").boundingBox()).width) === 356, await p.locator(".io-side").boundingBox());
await p.setViewportSize({ width: 1400, height: 900 });
await p.waitForTimeout(100);