diff --git a/src/public/app/widgets/note_type.js b/src/public/app/widgets/note_type.js index 08dc943b0..f7bb6b5da 100644 --- a/src/public/app/widgets/note_type.js +++ b/src/public/app/widgets/note_type.js @@ -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) { diff --git a/src/public/app/widgets/search_definition.js b/src/public/app/widgets/search_definition.js index 134445a7e..73b42bc73 100644 --- a/src/public/app/widgets/search_definition.js +++ b/src/public/app/widgets/search_definition.js @@ -18,6 +18,8 @@ const TPL = ` } .search-setting-table { + margin-top: 7px; + margin-bottom: 7px; width: 100%; border-collapse: separate; border-spacing: 10px;