mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +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) {
|
if (isHoistedNote) {
|
||||||
const $unhoistButton = $('<span class="tree-item-button unhoist-button bx bx-door-open" title="Unhoist"></span>');
|
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) {
|
if (note.hasLabel('workspace') && !isHoistedNote) {
|
||||||
|
@ -211,6 +211,10 @@ span.fancytree-node.archived {
|
|||||||
border-radius: 5px;
|
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 {
|
.tree-item-button:hover {
|
||||||
border: 1px dotted var(--main-text-color);
|
border: 1px dotted var(--main-text-color);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user