From a44f2de806d0557b148dcdf36a3107cb4ecf31ce Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Sat, 15 Nov 2025 19:12:48 +0200 Subject: Minor fixes --- app/components.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/components.js') diff --git a/app/components.js b/app/components.js index e1506a3..72c0595 100644 --- a/app/components.js +++ b/app/components.js @@ -789,7 +789,7 @@ export class Sidebar { children: [ Dom.heading( 3, - "Map Colors", + "Visualisation parameters", new DomOptions({ styles: { color: "#333", @@ -1303,7 +1303,7 @@ export class Modal { this.#dialog.append( Dom.button( "x", - () => this.hide(), + () => this.remove(), new DomOptions({ id: "close-modal-btn", styles: { @@ -1322,7 +1322,7 @@ export class Modal { ); // Add event listeners with AbortController - this.#dialog.addEventListener("close", () => this.hide(), { + this.#dialog.addEventListener("close", () => this.remove(), { signal: this.#abortController.signal, }); this.#dialog.addEventListener( @@ -1337,7 +1337,7 @@ export class Modal { "mouseleave", () => { if (!this.#persistent) { - this.#timer = window.setTimeout(() => this.hide(), 200); + this.#timer = window.setTimeout(() => this.remove(), 200); } }, { signal: this.#abortController.signal }, @@ -1568,7 +1568,7 @@ export class Modal { } } - hide() { + remove() { clearTimeout(this.#timer); this.#dialog.close(); this.#dialog.remove(); -- cgit v1.2.3-70-g09d2