mirror of
https://github.com/zadam/trilium.git
synced 2025-01-17 12:39:51 +08:00
close note type dropdown after click
This commit is contained in:
parent
f723433970
commit
71bbf2eb16
2 changed files with 5 additions and 1 deletions
|
@ -91,7 +91,9 @@ export default class NoteTypeWidget extends TabAwareWidget {
|
|||
.on('click', e => {
|
||||
const $link = $(e.target).closest('.dropdown-item');
|
||||
|
||||
this.save('code', $link.attr('data-mime-type'))
|
||||
this.save('code', $link.attr('data-mime-type'));
|
||||
|
||||
this.$noteTypeButton.dropdown('hide');
|
||||
});
|
||||
|
||||
if (this.note.type === 'code' && this.note.mime === mimeType.mime) {
|
||||
|
|
|
@ -18,6 +18,8 @@ const TPL = `
|
|||
}
|
||||
|
||||
.search-setting-table {
|
||||
margin-top: 7px;
|
||||
margin-bottom: 7px;
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 10px;
|
||||
|
|
Loading…
Reference in a new issue