feat(client): move toggle sidebar to tab bar on horizontal layout

This commit is contained in:
Elian Doran
2024-11-30 01:20:47 +02:00
parent 29d6ef85ff
commit ca6687208b
4 changed files with 16 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ export default class LeftPaneToggleWidget extends CommandButtonWidget {
constructor(isHorizontalLayout) {
super();
this.class("launcher-button");
this.class(isHorizontalLayout ? "toggle-button" : "launcher-button");
this.settings.icon = () => options.is('leftPaneVisible')
? "bx-chevrons-left"