mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
chore(insert_note): improve layout slightly
This commit is contained in:
parent
5a2da62992
commit
736bc9c9bd
@ -154,15 +154,15 @@ async function getBuiltInTemplates(title: string | null, command: TreeCommandNam
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
const items: MenuItem<TreeCommandNames>[] = [
|
const items: MenuItem<TreeCommandNames>[] = [];
|
||||||
SEPARATOR
|
|
||||||
];
|
|
||||||
|
|
||||||
if (title) {
|
if (title) {
|
||||||
items.push({
|
items.push({
|
||||||
title: title,
|
title: title,
|
||||||
enabled: false
|
enabled: false,
|
||||||
|
uiIcon: "bx bx-empty"
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
items.push(SEPARATOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const templateNote of childNotes) {
|
for (const templateNote of childNotes) {
|
||||||
|
@ -337,6 +337,11 @@ button kbd {
|
|||||||
--bs-dropdown-link-active-bg: var(--active-item-background-color) !important;
|
--bs-dropdown-link-active-bg: var(--active-item-background-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropdown-menu .dropdown-divider {
|
||||||
|
break-before: avoid;
|
||||||
|
break-after: avoid;
|
||||||
|
}
|
||||||
|
|
||||||
body.desktop .dropdown-menu {
|
body.desktop .dropdown-menu {
|
||||||
border: 1px solid var(--dropdown-border-color);
|
border: 1px solid var(--dropdown-border-color);
|
||||||
box-shadow: 0px 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));
|
box-shadow: 0px 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user