fix(viewer): set min-width on th cell to prevent column header truncation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mikhail Chusavitin
2026-06-19 14:46:30 +03:00
parent 969e246b81
commit b38c878724

View File

@@ -76,7 +76,7 @@ document.addEventListener("DOMContentLoaded", () => {
input.type = "text";
input.className = "col-filter col-filter-text";
input.placeholder = colName;
input.style.minWidth = `${colName.length + 1}ch`;
th.style.minWidth = `calc(${colName.length}ch + 20px)`;
input.setAttribute("aria-label", "filter " + colName);
let debounceTimer;
input.addEventListener("input", () => {