Rename main to scripts

This commit is contained in:
Zack Rauen
2023-09-27 16:28:08 -04:00
parent 2ae6d4c5a4
commit 667cd64f3b
12 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
/**
* This specifically fixes when you have empty corners
* like on tables with column and row headers
*/
export default function fixTableHeaders() {
const headers = document.querySelectorAll("th");
for (const header of headers) {
if (!header.textContent?.trim()) header.classList.add("empty");
}
}