mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	ctrl-alt-h now toggles visibility of everything except the main content (probably controversially also title)
This commit is contained in:
		
							parent
							
								
									1aeb0eec59
								
							
						
					
					
						commit
						aec8083d0c
					
				@ -12,7 +12,7 @@
 | 
				
			|||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div id="content" style="margin-left: auto; margin-right: auto; width: 1100px">
 | 
					    <div id="content" style="margin-left: auto; margin-right: auto; width: 1100px">
 | 
				
			||||||
      <div style="width: 300px; height: 100%; float: left;">
 | 
					      <div class="hide-toggle" style="width: 300px; height: 100%; float: left;">
 | 
				
			||||||
        <button type="button" class="btn" onclick="createNewTopLevelNote()">Create new note</button>
 | 
					        <button type="button" class="btn" onclick="createNewTopLevelNote()">Create new note</button>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <div id="tree" style="overflow: scroll; height: 100%;">
 | 
					        <div id="tree" style="overflow: scroll; height: 100%;">
 | 
				
			||||||
@ -20,13 +20,13 @@
 | 
				
			|||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <div style="width: 750px; float: left; margin-left: 30px;">
 | 
					      <div style="width: 750px; float: left; margin-left: 30px;">
 | 
				
			||||||
        <div style="float: right;">
 | 
					        <div style="float: right;" class="hide-toggle">
 | 
				
			||||||
          <form action="logout" method="POST">
 | 
					          <form action="logout" method="POST">
 | 
				
			||||||
            <input type="submit" class="btn btn-sm" value="Logout">
 | 
					            <input type="submit" class="btn btn-sm" value="Logout">
 | 
				
			||||||
          </form>
 | 
					          </form>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <div style="float: left; margin: 0 5px 5px 5px;">
 | 
					        <div style="float: left; margin: 0 5px 5px 5px;" class="hide-toggle">
 | 
				
			||||||
          <input type="text" autocomplete="off" value="Welcome to Notecase web app!" id="noteTitle" style="font-size: x-large; border: 0; width: 600px;">
 | 
					          <input type="text" autocomplete="off" value="Welcome to Notecase web app!" id="noteTitle" style="font-size: x-large; border: 0; width: 600px;">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <button class="btn btn-sm" onclick="encryptNote();">Encrypt</button>
 | 
					          <button class="btn btn-sm" onclick="encryptNote();">Encrypt</button>
 | 
				
			||||||
 | 
				
			|||||||
@ -4,4 +4,13 @@ $(function() {
 | 
				
			|||||||
        $('div.note-editable').height($(window).height() - $('div.note-editable').offset().top);
 | 
					        $('div.note-editable').height($(window).height() - $('div.note-editable').offset().top);
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    $(window).resize();
 | 
					    $(window).resize();
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jQuery.hotkeys.options.filterInputAcceptingElements = true;
 | 
				
			||||||
 | 
					jQuery.hotkeys.options.filterContentEditable = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$(document).bind('keypress', 'alt+ctrl+h', function() {
 | 
				
			||||||
 | 
					    const toggle = $(".hide-toggle");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    toggle.css('visibility', toggle.css('visibility') === 'hidden' ? 'visible' : 'hidden');
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user