mirror of
https://github.com/zadam/trilium.git
synced 2026-01-02 20:54:24 +01:00
feat(client): display different icon to toggle sidebar on horizontal layout
This commit is contained in:
parent
ca6687208b
commit
4ecf49b175
@ -9,9 +9,13 @@ export default class LeftPaneToggleWidget extends CommandButtonWidget {
|
||||
|
||||
this.class(isHorizontalLayout ? "toggle-button" : "launcher-button");
|
||||
|
||||
this.settings.icon = () => options.is('leftPaneVisible')
|
||||
? "bx-chevrons-left"
|
||||
: "bx-chevrons-right";
|
||||
this.settings.icon = () => {
|
||||
if (options.get("layoutOrientation") === "horizontal") {
|
||||
return "bx-sidebar";
|
||||
}
|
||||
|
||||
return (options.is('leftPaneVisible') ? "bx-chevrons-left" : "bx-chevrons-right");
|
||||
};
|
||||
|
||||
this.settings.title = () => options.is('leftPaneVisible')
|
||||
? t("left_pane_toggle.hide_panel")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user