mirror of
https://github.com/zadam/trilium.git
synced 2025-12-23 00:29:59 +01:00
Rename main to scripts
This commit is contained in:
10
src/scripts/fixes/tableheaders.ts
Normal file
10
src/scripts/fixes/tableheaders.ts
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user