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);
+4 -2
View File
@@ -31,11 +31,13 @@ def main() -> None:
env = jinja2.Environment(
loader=jinja2.FileSystemLoader([os.path.join(ROOT, "app", "templates"), os.path.join(ROOT, "app", "modules", "inout", "templates")]),
autoescape=True, undefined=jinja2.ChainableUndefined)
base = {"date_holidays": _date_holidays(), "today": date(2026, 10, 5), "user": {"name": "테스트", "email": "t@test.local"}, "nav_items": [], "perms": {"can_order": True, "can_receive": True}}
base = {"date_holidays": _date_holidays(), "today": date(2026, 10, 5), "user": {"name": "테스트", "email": "t@test.local"}, "nav_items": [], "perms": {"can_order": True, "can_receive": True, "super": True}}
pages = {
"inout_form.html": ("inout/order_form.html", {"vals": {"order_date": "2026-10-05", "due_date": ""}, "factories": []}),
"inout_list.html": ("inout/index.html", {"filters": {"from": "2026-10-01", "to": "", "status": "open", "q": "", "factory": ""}, "factories": [], "status_filters": {}, "orders": [
_order(1, [date(2026, 10, 21), date(2026, 10, 23)]), _order(2, [date(2026, 10, 22)]), _order(3, [])]}),
_order(1, [date(2026, 10, 21), date(2026, 10, 23)]), _order(2, [date(2026, 10, 22)]), _order(3, []),
{**_order(4, [date(2026, 11, 2)]), "status": "over", "status_label": "전체 입고 완료",
"summary": {"ordered": 1800, "received": 1820, "remaining": 0, "over": 20, "pct": 100}}]}),
}
for out, (name, ctx) in pages.items():
with open(os.path.join(OUT_DIR, out), "w", encoding="utf-8") as f: