fix(휴가): 신청 달력 공휴일 이름 크게(9→10.5px), 달력 폭 380px

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-02 15:52:49 +09:00
parent 0c17b02468
commit 4ecde312f9
10 changed files with 16 additions and 9 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ def main() -> None:
ctx = {"user": {"email": "kim@test.local", "name": "김철수", "picture": ""}, "is_admin": False, "is_approver": False,
"nav_items": [], "page_title": "휴가 신청", "page_subtitle": "", "mode": "new", "req": None,
"default_date": "2026-10-27", "vacation_types": list(VACATION_TYPES), "halves": list(HALVES),
"half_labels": HALF_LABELS, "holidays": {"2026-10-03": "개천절", "2026-10-09": "한글날", "2026-12-25": "성탄절"},
"half_labels": HALF_LABELS, "holidays": {"2026-10-01": "부처님오신날", "2026-10-03": "개천절", "2026-10-09": "한글날", "2026-12-25": "성탄절"}, # 10-01 = 가장 긴 이름(석가탄신일) 칸 맞춤 확인용
"consult_ready": True, "consult_chosen": {},
"members": [{"email": "lee@test.local", "name": "이팀장", "picture": ""}, {"email": "park@test.local", "name": "박과장", "picture": ""},
{"email": "choi@test.local", "name": "최대리", "picture": ""}],
@@ -78,6 +78,11 @@ function check(name, cond, extra) {
return { hol: hol.classList.contains("is-sun") && hol.textContent, sat: document.querySelector('#vac-cal .pj-dp-day[data-iso="2026-10-24"]').classList.contains("is-sat"), left: box.right <= side.left };
});
check("공용 달력 서식 — 공휴일 빨강·이름, 토 파랑, 달력은 왼쪽", cal.hol === "9한글날" && cal.sat && cal.left, cal);
const holName = await p.evaluate(function () {
const h = document.querySelector('#vac-cal .pj-dp-day[data-iso="2026-10-01"] .pj-dp-hol');
return { text: h.textContent, size: parseFloat(getComputedStyle(h).fontSize), clipped: h.scrollWidth > h.clientWidth };
});
check("공휴일 이름 10.5px, 가장 긴 이름(석가탄신일)도 안 잘림", holName.text === "석가탄신일" && holName.size === 10.5 && !holName.clipped, holName);
// 하루 = 동그라미, 시작·종료 칸 자동, 종료 구분은 숨김(하루는 시작 구분만)
await day("2026-10-20");