mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	removed zen mode
This commit is contained in:
		
							parent
							
								
									8debf18984
								
							
						
					
					
						commit
						faab6be48d
					
				| @ -80,7 +80,6 @@ export default class DesktopLayout { | ||||
|                 .css("width", "54px") | ||||
|             ) | ||||
|             .child(new LeftPaneContainer() | ||||
|                 .hideInZenMode() | ||||
|                 .child(new QuickSearchWidget()) | ||||
|                 .child(appContext.mainTreeWidget) | ||||
|                 .child(...this.customWidgets.get('left-pane')) | ||||
| @ -147,7 +146,6 @@ export default class DesktopLayout { | ||||
|                         ) | ||||
|                     ) | ||||
|                     .child(new RightPaneContainer() | ||||
|                         .hideInZenMode() | ||||
|                         .child(...this.customWidgets.get('right-pane')) | ||||
|                     ) | ||||
|                 ) | ||||
|  | ||||
| @ -45,11 +45,6 @@ class BasicWidget extends Component { | ||||
|         return this; | ||||
|     } | ||||
| 
 | ||||
|     hideInZenMode() { | ||||
|         this.class('hide-in-zen-mode'); | ||||
|         return this; | ||||
|     } | ||||
| 
 | ||||
|     cssBlock(block) { | ||||
|         this.cssEl = block; | ||||
|         return this; | ||||
|  | ||||
| @ -48,12 +48,6 @@ const TPL = ` | ||||
|             <kbd data-command="reloadFrontendApp"></kbd> | ||||
|         </a> | ||||
| 
 | ||||
|         <a class="dropdown-item" data-trigger-command="toggleZenMode"> | ||||
|             <span class="bx bx-empty"></span> | ||||
|             Toggle Zen mode | ||||
|             <kbd data-command="toggleZenMode"></kbd> | ||||
|         </a> | ||||
| 
 | ||||
|         <a class="dropdown-item" data-trigger-command="toggleFullscreen"> | ||||
|             <span class="bx bx-empty"></span> | ||||
|             Toggle fullscreen | ||||
|  | ||||
| @ -22,23 +22,6 @@ export default class RootContainer extends FlexContainer { | ||||
| 
 | ||||
|             this.$widget.toggleClass("protected", note.isProtected); | ||||
|         } | ||||
| 
 | ||||
|         this.setZenMode(this.isZenModeActive); | ||||
|     } | ||||
| 
 | ||||
|     setZenMode(active) { | ||||
|         this.isZenModeActive = active; | ||||
| 
 | ||||
|         if (this.isZenModeActive) { | ||||
|             $("#root-widget").addClass("zen-mode"); | ||||
|         } | ||||
|         else { | ||||
|             $("#root-widget").removeClass("zen-mode"); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     toggleZenModeEvent() { | ||||
|         this.setZenMode(!this.isZenModeActive); | ||||
|     } | ||||
| 
 | ||||
|     noteSwitchedEvent() { | ||||
|  | ||||
| @ -54,18 +54,6 @@ button.close:hover { | ||||
|     display: none; | ||||
| } | ||||
| 
 | ||||
| .zen-mode #center-pane { | ||||
|     width: 100% !important; | ||||
|     /* limit max width to improve readability */ | ||||
|     max-width: 1000px; | ||||
|     margin-left: auto; | ||||
|     margin-right: auto; | ||||
| } | ||||
| 
 | ||||
| .zen-mode .hide-in-zen-mode, .zen-mode .gutter { | ||||
|     display: none !important; | ||||
| } | ||||
| 
 | ||||
| .ui-autocomplete { | ||||
|     max-height: 300px; | ||||
|     overflow-y: auto; | ||||
|  | ||||
| @ -396,11 +396,6 @@ const DEFAULT_KEYBOARD_ACTIONS = [ | ||||
|         defaultShortcuts: ["F11"], | ||||
|         scope: "window" | ||||
|     }, | ||||
|     { | ||||
|         actionName: "toggleZenMode", | ||||
|         defaultShortcuts: ["Alt+M"], | ||||
|         scope: "window" | ||||
|     }, | ||||
|     { | ||||
|         actionName: "zoomOut", | ||||
|         defaultShortcuts: isElectron ? ["CommandOrControl+-"] : [], | ||||
|  | ||||
| @ -135,7 +135,6 @@ | ||||
| 
 | ||||
|                             <p class="card-text"> | ||||
|                                 <ul> | ||||
|                                     <li><kbd data-command="toggleZenMode">not set</kbd> - Zen mode - display only note editor, everything else is hidden</li> | ||||
|                                     <li><kbd data-command="quickSearch">not set</kbd> - focus on quick search input</li> | ||||
|                                     <li><kbd data-command="findInText">not set</kbd> - in page search</li> | ||||
|                                 </ul> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam