feat(inout): 달력 공휴일 이름을 날짜 숫자 아래에 표시

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 14:08:14 +09:00
parent cba4b3b441
commit a396b94a9f
7 changed files with 17 additions and 8 deletions
+6
View File
@@ -360,6 +360,12 @@
.io-cal-day.has-ev:hover { background: #f2f6ff; }
.io-cal-day:focus-visible { outline: 2px solid #1d4ed8; outline-offset: -2px; }
.io-cal-num { font-size: 12px; font-weight: 600; color: #0a0a0a; line-height: 18px; min-width: 18px; text-align: center; border-radius: 9999px; }
/* 공휴일 이름 — 숫자 아래 한 줄(2026-10-21). 칸이 좁아 넘치면 … (전체 이름은 말풍선). 공휴일 칸은 숫자·이름·건수가 다 들어가게 위아래를 줄인다 */
.io-cal-hol { display: block; max-width: 100%; font-size: 8.5px; line-height: 10px; font-weight: 600; color: #c22b10;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.6px; }
.io-cal-day.is-out .io-cal-hol { color: #e3a397; }
.io-cal-day.has-hol { padding: 1px 1px 0; gap: 0; overflow: hidden; }
.io-cal-day.has-hol .io-cal-num { line-height: 16px; }
.io-cal-day.is-sun .io-cal-num { color: #c22b10; }
.io-cal-day.is-sat .io-cal-num { color: #1d4ed8; }
.io-cal-day.is-out { background: #fafafa; }
+2
View File
@@ -792,11 +792,13 @@
if (iso === data.today) cls.push("is-today");
if (wd === 0 || hol) cls.push("is-sun"); else if (wd === 6) cls.push("is-sat");
if (ev.orders.length || ev.receipts.length) cls.push("has-ev");
if (hol) cls.push("has-hol");
const tip = [iso.replace(/-/g, ".") + "(" + WD[wd] + ")" + (hol ? " " + hol : "")];
if (ev.orders.length) tip.push("발주 " + ev.orders.length + "건");
if (ev.receipts.length) tip.push("입고 " + ev.receipts.length + "건");
html += '<button type="button" class="' + cls.join(" ") + '" data-date="' + iso + '" title="' + escH(tip.join(" · ")) + '">' +
'<span class="io-cal-num">' + d.getDate() + "</span>" +
(hol ? '<span class="io-cal-hol">' + escH(hol) + "</span>" : "") + // 공휴일 이름 = 숫자 아래
'<span class="io-cal-marks">' +
(ev.orders.length ? '<i class="io-cal-m is-order">' + ev.orders.length + "</i>" : "") +
(ev.receipts.length ? '<i class="io-cal-m is-receipt">' + ev.receipts.length + "</i>" : "") +