refactor(next): remove use of :has for performance reasons

This commit is contained in:
Elian Doran
2025-07-08 21:24:18 +03:00
parent 2fac2a8c5e
commit 24340d3a8e
2 changed files with 4 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import type Component from "../../components/component.js";
export default class LeftPaneContainer extends FlexContainer<Component> {
private currentLeftPaneVisible: boolean;
constructor() {
super("column");
@@ -24,6 +24,7 @@ export default class LeftPaneContainer extends FlexContainer<Component> {
this.currentLeftPaneVisible = leftPaneVisible ?? !this.currentLeftPaneVisible;
const visible = this.isEnabled();
this.toggleInt(visible);
this.parent?.$widget.toggleClass("left-pane-hidden", !visible);
if (visible) {
this.triggerEvent("focusTree", {});