heatmaps: part 8

This commit is contained in:
nym21
2026-05-31 18:57:23 +02:00
parent 5df399d2f7
commit 7860c5a8bd
6 changed files with 32 additions and 21 deletions
+6 -4
View File
@@ -1,5 +1,9 @@
import { createPartialOptions } from "./partial.js";
import { createButtonElement, createAnchorElement } from "../utils/dom.js";
import {
createAnchorElement,
createButtonElement,
createSmall,
} from "../utils/dom.js";
import { pushHistory, resetParams } from "../utils/url.js";
import { readStored, writeToStorage } from "../utils/storage.js";
import { stringToId } from "../utils/format.js";
@@ -395,9 +399,7 @@ export function initOptions() {
details.append(summary);
summary.append(node.name);
const count = window.document.createElement("small");
count.textContent = `[${node.count.toLocaleString("en-us")}]`;
summary.append(count);
summary.append(createSmall(`[${node.count.toLocaleString("en-us")}]`));
let built = false;
if (autoOpen && isOnSelectedPath(node.path)) {