fix(performance): 날짜 열은 너비 조절 안 함(늘 자동 너비)
수동 열 너비 모드에서도 날짜 열은 글자 길이 자동 너비 유지, 경계 손잡이 없음, 예전에 저장된 날짜 열 너비는 무시. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -269,7 +269,9 @@
|
||||
function store() {
|
||||
try { localStorage.setItem(KEY, JSON.stringify(saved)); } catch (_) { /* 기억만 못 함 */ }
|
||||
}
|
||||
function widthOf(th) { const c = th.dataset.col; return saved[c] || auto[c] || 80; }
|
||||
// 날짜 열(label)은 조절 안 함(2026-10-27) — 늘 자동 너비(글자 길이), 손잡이 없음
|
||||
function fixedCol(th) { return th.dataset.col === "label"; }
|
||||
function widthOf(th) { const c = th.dataset.col; return (!fixedCol(th) && saved[c]) || auto[c] || 80; }
|
||||
function apply(zero) { // zero = 너비 0 으로 둘 열(접는 중·펴기 직전)
|
||||
let sum = 0;
|
||||
heads.forEach(function (th) {
|
||||
@@ -291,6 +293,7 @@
|
||||
apply();
|
||||
}
|
||||
heads.forEach(function (th) {
|
||||
if (fixedCol(th)) return;
|
||||
const g = document.createElement("span");
|
||||
g.className = "perf-colw-grip";
|
||||
g.setAttribute("aria-hidden", "true");
|
||||
|
||||
Reference in New Issue
Block a user