style(입출고): 오른쪽 달력과 발주 목록 글자를 90%로
달력 너비 clamp(270px, 20.7vw, 396px), 글자는 달력 너비 기준이라 함께 줄어든다. 발주 목록 표는 머리글과 칸의 글자 크기를 각각 90%로 줄여 비율을 유지한다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -82,7 +82,14 @@ 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 s === "center|700|13.32px|rgb(242, 242, 242)"; }), headStyles);
|
||||
check("머리글 모양", headStyles.length > 0 && headStyles.every(function (s) { return /^center\|700\|11\.98\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");
|
||||
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());
|
||||
await p.setViewportSize({ width: 1400, height: 900 });
|
||||
await p.waitForTimeout(100);
|
||||
|
||||
// 목록 입고일 열(2026-11-05) — 입고 예정일과 발주 사이, 여러 날은 한 칸에서 줄바꿈, 입고 전 "-"
|
||||
const heads = await p.locator(".io-table thead th").allInnerTexts();
|
||||
|
||||
Reference in New Issue
Block a user