feat(라이브커머스): 한글·영문 전환 버튼과 메인 카드 제목 표기

스케줄표·달력·호스트 설정 위에 한글/EN 버튼을 두고 화면·창·오류·확인
문구를 모두 전환한다(쿠키 live_lang, 브라우저마다 기억). 메인 카드 제목은
"라이브 커머스 · Live Commerce"로 표기한다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 10:51:06 +09:00
parent 387341b1d8
commit 1babc39b64
8 changed files with 31 additions and 22 deletions
+9 -1
View File
@@ -65,13 +65,21 @@ function check(name, cond, extra) {
return { page: pg.scrollHeight - pg.clientHeight, table: w.scrollHeight - w.clientHeight, wrapH: w.clientHeight, row: document.querySelector(".lv-cal tbody tr").getBoundingClientRect().height };
});
};
// 1시간 칸(18줄, 2026-11-06) — 카드가 많은 달은 표 안에서 스크롤, 방송이 적은 달은 표도 한 화면
for (const h of [937, 880]) {
await p.setViewportSize({ width: 1920, height: h });
await p.waitForTimeout(100);
const f = await fit();
check("1920×" + h + ": 페이지·표 세로 스크롤 없음", f.page <= 0 && f.table <= 0, f);
check("1920×" + h + ": 페이지 세로 스크롤 없음", f.page <= 0, f);
if (h === 880) await p.screenshot({ path: path.join(__dirname, ".out", "live_fit_880.png") });
}
await p.goto("http://erp.test/live/calendar?month=2026-12");
await p.waitForTimeout(300);
const empty = await fit();
check("1920×880 방송 없는 달: 18줄이 표 안 스크롤 없이", empty.page <= 0 && empty.table <= 0, empty);
await p.screenshot({ path: path.join(__dirname, ".out", "live_fit_880_empty.png") });
await p.goto("http://erp.test/live/calendar?month=2026-11");
await p.waitForTimeout(300);
await p.setViewportSize({ width: 1600, height: 600 });
await p.waitForTimeout(100);
const small = await fit();