mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 17:21:23 +08:00
use visibility instead of display for alt+m so design doesn't break when pressing alt+m again
This commit is contained in:
parent
ae5bba83b1
commit
81187ebb0e
1 changed files with 2 additions and 2 deletions
|
@ -4,9 +4,9 @@ jQuery.hotkeys.options.filterContentEditable = true;
|
|||
|
||||
$(document).bind('keydown', 'alt+m', () => {
|
||||
const toggle = $(".hide-toggle");
|
||||
const hidden = toggle.css('display') === 'none';
|
||||
const hidden = toggle.css('visibility') === 'hidden';
|
||||
|
||||
toggle.css('display', hidden ? 'block' : 'none');
|
||||
toggle.css('visibility', hidden ? 'visible' : 'hidden');
|
||||
});
|
||||
|
||||
// hide (toggle) everything except for the note content for distraction free writing
|
||||
|
|
Loading…
Reference in a new issue