layout tweaks

This commit is contained in:
zadam
2020-11-27 21:57:41 +01:00
parent 31746e7baf
commit 642bf9d113
3 changed files with 8 additions and 8 deletions

View File

@@ -51,21 +51,21 @@ const TPL = `
.collapse-tree-button {
position: absolute;
top: 10px;
bottom: 10px;
right: 70px;
z-index: 100;
}
.scroll-to-active-note-button {
position: absolute;
top: 10px;
bottom: 10px;
right: 35px;
z-index: 100;
}
.tree-settings-button {
position: absolute;
top: 10px;
bottom: 10px;
right: 0px;
z-index: 100;
}
@@ -223,7 +223,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
let top = this.$treeSettingsButton[0].offsetTop;
let left = this.$treeSettingsButton[0].offsetLeft;
top += this.$treeSettingsButton.outerHeight();
top -= this.$treeSettingsPopup.outerHeight();
left += this.$treeSettingsButton.outerWidth() - this.$treeSettingsPopup.outerWidth();
if (left < 0) {