unhoist button on the left

This commit is contained in:
zadam 2022-12-14 10:18:29 +01:00
parent 587387dd46
commit 75639c53f0
2 changed files with 7 additions and 1 deletions

View File

@ -550,7 +550,9 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
if (isHoistedNote) {
const $unhoistButton = $('<span class="tree-item-button unhoist-button bx bx-door-open" title="Unhoist"></span>');
$span.append($unhoistButton);
// unhoist button is prepended since compared to other buttons this is not just convenience
// on the mobile interface - it's the only way to unhoist
$span.prepend($unhoistButton);
}
if (note.hasLabel('workspace') && !isHoistedNote) {

View File

@ -211,6 +211,10 @@ span.fancytree-node.archived {
border-radius: 5px;
}
.unhoist-button.bx.tree-item-button {
margin-left: 0; /* unhoist button is on the left and doesn't need more margin */
}
.tree-item-button:hover {
border: 1px dotted var(--main-text-color);
}