fix(viewer): use size attribute on input to enforce column min-width

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

View File

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