mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
fix(client): tooltip position for hide left pane button
This commit is contained in:
@@ -26,7 +26,8 @@ export default class AbstractButtonWidget extends NoteContextAwareWidget {
|
||||
html: true,
|
||||
title: () => this.getTitle(),
|
||||
trigger: 'hover',
|
||||
placement: this.settings.titlePlacement
|
||||
placement: this.settings.titlePlacement,
|
||||
fallbackPlacements: [ this.settings.titlePlacement ]
|
||||
})
|
||||
|
||||
if (this.settings.onContextMenu) {
|
||||
|
||||
@@ -4,7 +4,7 @@ import CommandButtonWidget from "./command_button.js";
|
||||
import { t } from "../../services/i18n.js";
|
||||
|
||||
export default class LeftPaneToggleWidget extends CommandButtonWidget {
|
||||
constructor() {
|
||||
constructor(isHorizontalLayout) {
|
||||
super();
|
||||
|
||||
this.class("launcher-button");
|
||||
@@ -20,6 +20,11 @@ export default class LeftPaneToggleWidget extends CommandButtonWidget {
|
||||
this.settings.command = () => options.is('leftPaneVisible')
|
||||
? "hideLeftPane"
|
||||
: "showLeftPane";
|
||||
|
||||
if (isHorizontalLayout) {
|
||||
this.settings.titlePlacement = "bottom";
|
||||
}
|
||||
console.log(this.settings);
|
||||
}
|
||||
|
||||
refreshIcon() {
|
||||
|
||||
Reference in New Issue
Block a user