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.
This commit is contained in:
@@ -489,6 +489,8 @@ class groupButton {
|
|||||||
private _indent: number;
|
private _indent: number;
|
||||||
private _parentSidebar: HTMLElement;
|
private _parentSidebar: HTMLElement;
|
||||||
|
|
||||||
|
private static readonly _margin = "ml-6";
|
||||||
|
|
||||||
asElement = () => { return this._el; };
|
asElement = () => { return this._el; };
|
||||||
|
|
||||||
remove = () => { this._el.remove(); };
|
remove = () => { this._el.remove(); };
|
||||||
@@ -528,9 +530,9 @@ class groupButton {
|
|||||||
|
|
||||||
get indent(): number { return this._indent; }
|
get indent(): number { return this._indent; }
|
||||||
set indent(v: number) {
|
set indent(v: number) {
|
||||||
this._dropdown.classList.remove("ml-" + ((this._indent+1)*2));
|
this._dropdown.classList.remove(groupButton._margin);
|
||||||
this._indent = v;
|
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"); }
|
get hidden(): boolean { return this._el.classList.contains("unfocused"); }
|
||||||
|
|||||||
Reference in New Issue
Block a user