mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
feat(command_palette): improve dialog margins
This commit is contained in:
@@ -128,10 +128,15 @@ div.tn-tool-dialog {
|
|||||||
|
|
||||||
.jump-to-note-dialog .modal-header {
|
.jump-to-note-dialog .modal-header {
|
||||||
padding: unset !important;
|
padding: unset !important;
|
||||||
|
padding-bottom: 26px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jump-to-note-dialog .modal-body {
|
.jump-to-note-dialog .modal-body {
|
||||||
padding: 26px 0 !important;
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.jump-to-note-dialog .modal-footer {
|
||||||
|
padding-top: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Search box wrapper */
|
/* Search box wrapper */
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default class JumpToNoteDialog extends BasicWidget {
|
|||||||
private modal!: bootstrap.Modal;
|
private modal!: bootstrap.Modal;
|
||||||
private $autoComplete!: JQuery<HTMLElement>;
|
private $autoComplete!: JQuery<HTMLElement>;
|
||||||
private $results!: JQuery<HTMLElement>;
|
private $results!: JQuery<HTMLElement>;
|
||||||
private $showInFullTextButton!: JQuery<HTMLElement>;
|
private $modalFooter!: JQuery<HTMLElement>;
|
||||||
private isCommandMode: boolean = false;
|
private isCommandMode: boolean = false;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
@@ -50,8 +50,8 @@ export default class JumpToNoteDialog extends BasicWidget {
|
|||||||
|
|
||||||
this.$autoComplete = this.$widget.find(".jump-to-note-autocomplete");
|
this.$autoComplete = this.$widget.find(".jump-to-note-autocomplete");
|
||||||
this.$results = this.$widget.find(".jump-to-note-results");
|
this.$results = this.$widget.find(".jump-to-note-results");
|
||||||
this.$showInFullTextButton = this.$widget.find(".show-in-full-text-button");
|
this.$modalFooter = this.$widget.find(".modal-footer");
|
||||||
this.$showInFullTextButton.on("click", (e) => this.showInFullText(e));
|
this.$modalFooter.find(".show-in-full-text-button").on("click", (e) => this.showInFullText(e));
|
||||||
|
|
||||||
shortcutService.bindElShortcut(this.$widget, "ctrl+return", (e) => this.showInFullText(e));
|
shortcutService.bindElShortcut(this.$widget, "ctrl+return", (e) => this.showInFullText(e));
|
||||||
|
|
||||||
@@ -73,9 +73,9 @@ export default class JumpToNoteDialog extends BasicWidget {
|
|||||||
|
|
||||||
private updateButtonVisibility() {
|
private updateButtonVisibility() {
|
||||||
if (this.isCommandMode) {
|
if (this.isCommandMode) {
|
||||||
this.$showInFullTextButton.hide();
|
this.$modalFooter.hide();
|
||||||
} else {
|
} else {
|
||||||
this.$showInFullTextButton.show();
|
this.$modalFooter.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user