fix add link + note type chooser combo

This commit is contained in:
zadam 2022-06-16 13:21:27 +02:00
parent 0468ca6814
commit e0ad256194
2 changed files with 6 additions and 1 deletions

View File

@ -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) {

View File

@ -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;