From a680db92a7b33fab72c9a5605b707fbb195eb4c9 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Tue, 25 Nov 2025 14:56:53 +0000 Subject: [PATCH] settings: fix group indent obviously groups don't need an increased margin value, they already have a margin from the parent! Also increased it to ml-6. --- ts/modules/settings.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ts/modules/settings.ts b/ts/modules/settings.ts index 9162226..dee4d0f 100644 --- a/ts/modules/settings.ts +++ b/ts/modules/settings.ts @@ -489,6 +489,8 @@ class groupButton { private _indent: number; private _parentSidebar: HTMLElement; + private static readonly _margin = "ml-6"; + asElement = () => { return this._el; }; remove = () => { this._el.remove(); }; @@ -528,9 +530,9 @@ class groupButton { get indent(): number { return this._indent; } set indent(v: number) { - this._dropdown.classList.remove("ml-" + ((this._indent+1)*2)); + this._dropdown.classList.remove(groupButton._margin); this._indent = v; - this._dropdown.classList.add("ml-" + ((this._indent+1)*2)); + this._dropdown.classList.add(groupButton._margin); } get hidden(): boolean { return this._el.classList.contains("unfocused"); }