mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix add link + note type chooser combo
This commit is contained in:
parent
0468ca6814
commit
e0ad256194
@ -18,7 +18,7 @@ async function getNoteTypeItems(command) {
|
|||||||
const templateNoteIds = await server.get("search-templates");
|
const templateNoteIds = await server.get("search-templates");
|
||||||
const templateNotes = await froca.getNotes(templateNoteIds);
|
const templateNotes = await froca.getNotes(templateNoteIds);
|
||||||
|
|
||||||
if (items.length > 0) {
|
if (templateNotes.length > 0) {
|
||||||
items.push({ title: "----" });
|
items.push({ title: "----" });
|
||||||
|
|
||||||
for (const templateNote of templateNotes) {
|
for (const templateNote of templateNotes) {
|
||||||
|
@ -4,6 +4,11 @@ import BasicWidget from "../basic_widget.js";
|
|||||||
const TPL = `
|
const TPL = `
|
||||||
<div class="note-type-chooser-dialog modal mx-auto" tabindex="-1" role="dialog">
|
<div class="note-type-chooser-dialog modal mx-auto" tabindex="-1" role="dialog">
|
||||||
<style>
|
<style>
|
||||||
|
.note-type-chooser-dialog {
|
||||||
|
/* note type chooser needs to be higher than other dialogs from which it is triggered, e.g. "add link"*/
|
||||||
|
z-index: 1100 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.note-type-dropdown {
|
.note-type-dropdown {
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: large;
|
font-size: large;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user