mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
unhoist button on the left
This commit is contained in:
parent
587387dd46
commit
75639c53f0
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user