feat(performance): 일자별 표 열 너비 자동/수동 옵션
실적 설정 "보기 설정"에 표 열 너비 [자동(글자 길이)]·[수동 조절] 추가(쿠키 perf_colw). 수동이면 매출 실적·광고비 일자별 표 머리글 오른쪽 경계를 끌어 열 너비를 바꾸고, 바꾼 너비는 localStorage(perf_colw_sales/ads)에 유지. 경계 두 번 클릭 = 그 열만 자동, 설정 [조절한 너비 초기화]로 전부 되돌림. 그룹 접기·펴기 애니메이션과 연동. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -376,7 +376,8 @@ td.is-link:hover { background: #eef2ff; text-decoration: underline; }
|
||||
.perf-unit-suffix { margin-left: 2px; font-size: .55em; font-weight: 600; color: var(--color-midtone-gray, #777); }
|
||||
/* 보기 설정(매출 단위) */
|
||||
.perf-opt-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
||||
.perf-opt-label { font-weight: 600; }
|
||||
.perf-opt-label { font-weight: 600; min-width: 72px; }
|
||||
.perf-opt-row + .perf-opt-row { margin-top: 10px; }
|
||||
/* 자동 업데이트 일정(2026-10-26) — 매출 실적·광고비 한 줄씩: 이름·사용 | 요일·시간·간격 | 다음 회차 */
|
||||
.perf-auto-rows { display: flex; flex-direction: column; }
|
||||
.perf-auto-row { display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--perf-line); }
|
||||
@@ -507,3 +508,18 @@ body.perf-dragging, body.perf-dragging * { cursor: grabbing !important; user-sel
|
||||
.perf-main-wrap.is-stuck .perf-main thead th::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--perf-line); }
|
||||
/* 스크롤 막대 배경(트랙) 투명(2026-10-27) — 표 상자 가로 막대·실적 화면 세로 막대. 손잡이만 옅은 회색 */
|
||||
.perf-table-wrap, .erp-page:has(> .perf) { scrollbar-color: #c3c6cb transparent; }
|
||||
|
||||
/* ── 일자별 표 열 너비 수동 조절(2026-10-27, 실적 설정 "보기 설정" 쿠키 perf_colw=manual) ──
|
||||
performance.js initColWidths 가 자동 너비를 잰 뒤 th 너비·표 너비를 px 로 주고 is-colw-fixed(table-layout fixed) — 넘치는 글자는 … 로 자른다.
|
||||
머리글 오른쪽 경계 .perf-colw-grip 을 끌어 조절(마우스 올리면 선), 그룹 접기 애니메이션 동안 is-colw-anim 으로 열 너비도 함께 움직인다. */
|
||||
.perf-main.perf-colw-manual.is-colw-fixed { table-layout: fixed; }
|
||||
.perf-main.is-colw-fixed th, .perf-main.is-colw-fixed td { box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; }
|
||||
.perf-main.is-colw-fixed thead th.perf-th-label, .perf-main.is-colw-fixed .perf-td-label { min-width: 0; max-width: none; }
|
||||
.perf-main.is-colw-fixed .perf-adl { overflow: hidden; text-overflow: ellipsis; }
|
||||
.perf-main.is-colw-anim, .perf-main.is-colw-anim thead th { transition: width .26s ease, padding .26s ease; }
|
||||
.perf-main-wrap.is-stuck .perf-main.is-colw-fixed thead th::after { bottom: 0; } /* 칸이 넘침을 자르므로 아래 선을 칸 안에 */
|
||||
.perf-colw-grip { position: absolute; top: 0; right: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 6; touch-action: none; }
|
||||
.perf-colw-grip::after { content: ""; position: absolute; top: 6px; bottom: 6px; right: 1px; width: 2px; border-radius: 1px; background: transparent; }
|
||||
.perf-main thead th:hover > .perf-colw-grip::after { background: #c3c6cb; }
|
||||
.perf-main thead th > .perf-colw-grip:hover::after, .perf-colw-grip.is-active::after { background: #1a56db; }
|
||||
body.perf-colw-dragging, body.perf-colw-dragging * { cursor: col-resize !important; user-select: none; }
|
||||
|
||||
Reference in New Issue
Block a user