mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 23:13:43 +08:00
close down dropdown menus on click + smaller tweaks
This commit is contained in:
parent
9873dd1242
commit
8259b4a32c
7 changed files with 13 additions and 7 deletions
|
@ -55,7 +55,7 @@
|
|||
"mime-types": "2.1.27",
|
||||
"multer": "1.4.2",
|
||||
"node-abi": "2.19.1",
|
||||
"open": "7.2.0",
|
||||
"open": "7.2.1",
|
||||
"portscanner": "2.2.0",
|
||||
"rand-token": "1.0.1",
|
||||
"request": "^2.88.2",
|
||||
|
|
|
@ -32,7 +32,7 @@ export default class DesktopExtraWindowLayout {
|
|||
.child(new FlexContainer('column').id('center-pane').css('flex-grow', '1')
|
||||
.child(new FlexContainer('row').class('title-row')
|
||||
.overflowing()
|
||||
.cssBlock('.title-row > * { margin: 5px; }')
|
||||
.cssBlock('.title-row > * { margin: 5px 5px 0 5px; }')
|
||||
.child(new NoteTitleWidget())
|
||||
.child(new RunScriptButtonsWidget().hideInZenMode())
|
||||
.child(new NoteTypeWidget().hideInZenMode())
|
||||
|
|
|
@ -130,7 +130,7 @@ export default class DesktopMainWindowLayout {
|
|||
)
|
||||
.child(new FlexContainer('column').id('center-pane')
|
||||
.child(new FlexContainer('row').class('title-row')
|
||||
.cssBlock('.title-row > * { margin: 5px; }')
|
||||
.cssBlock('.title-row > * { margin: 5px 5px 0 5px; }')
|
||||
.overflowing()
|
||||
.child(new NoteTitleWidget())
|
||||
.child(new RunScriptButtonsWidget().hideInZenMode())
|
||||
|
|
|
@ -57,11 +57,11 @@ const TPL = `
|
|||
}
|
||||
|
||||
.attr-expander:not(.error):hover hr {
|
||||
border-color: black;
|
||||
border-color: var(--main-text-color);
|
||||
}
|
||||
|
||||
.attr-expander:not(.error):hover .attr-expander-text {
|
||||
color: black;
|
||||
.attr-expander:hover .attr-expander-text {
|
||||
color: var(--main-text-color);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
|
|
@ -120,5 +120,8 @@ export default class GlobalMenuWidget extends BasicWidget {
|
|||
this.$widget.find(".logout-button").toggle(!utils.isElectron());
|
||||
|
||||
this.$widget.find(".open-dev-tools-button").toggle(utils.isElectron());
|
||||
|
||||
this.$widget.on('click', '.dropdown-item',
|
||||
() => this.$widget.find('.dropdown-toggle').dropdown('toggle'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -114,6 +114,9 @@ export default class NoteActionsWidget extends TabAwareWidget {
|
|||
|
||||
this.$unprotectButton = this.$widget.find(".unprotect-button");
|
||||
this.$unprotectButton.on('click', () => protectedSessionService.protectNote(this.noteId, false, false));
|
||||
|
||||
this.$widget.on('click', '.dropdown-item',
|
||||
() => this.$widget.find('.dropdown-toggle').dropdown('toggle'));
|
||||
}
|
||||
|
||||
refreshWithNote(note) {
|
||||
|
|
|
@ -42,7 +42,7 @@ const TPL = `
|
|||
|
||||
.note-detail-book {
|
||||
height: 100%;
|
||||
padding: 10px;
|
||||
padding: 0 10px 10px 10px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue