mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 16:20:08 +01:00
refactor(next): remove use of :has for performance reasons
This commit is contained in:
@@ -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", {});
|
||||
|
||||
Reference in New Issue
Block a user