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:
+1
-1
@@ -76,7 +76,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
input.type = "text";
|
input.type = "text";
|
||||||
input.className = "col-filter col-filter-text";
|
input.className = "col-filter col-filter-text";
|
||||||
input.placeholder = colName;
|
input.placeholder = colName;
|
||||||
th.style.minWidth = `calc(${colName.length}ch + 20px)`;
|
input.size = colName.length + 2;
|
||||||
input.setAttribute("aria-label", "filter " + colName);
|
input.setAttribute("aria-label", "filter " + colName);
|
||||||
let debounceTimer;
|
let debounceTimer;
|
||||||
input.addEventListener("input", () => {
|
input.addEventListener("input", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user