mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	fix zen mode with new layout, closes #794
This commit is contained in:
		
							parent
							
								
									7db4859fb9
								
							
						
					
					
						commit
						64f32ba38f
					
				| @ -117,13 +117,13 @@ function registerEntrypoints() { | |||||||
|     // hide (toggle) everything except for the note content for zen mode
 |     // hide (toggle) everything except for the note content for zen mode
 | ||||||
|     const toggleZenMode = () => { |     const toggleZenMode = () => { | ||||||
|         if (!zenModeActive) { |         if (!zenModeActive) { | ||||||
|             $(".hide-in-zen-mode").addClass("hidden-by-zen-mode"); |             $(".hide-in-zen-mode,.gutter").addClass("hidden-by-zen-mode"); | ||||||
|             $("#container").addClass("zen-mode"); |             $("#container").addClass("zen-mode"); | ||||||
|             zenModeActive = true; |             zenModeActive = true; | ||||||
|         } |         } | ||||||
|         else { |         else { | ||||||
|             // not hiding / showing explicitly since element might be hidden also for other reasons
 |             // not hiding / showing explicitly since element might be hidden also for other reasons
 | ||||||
|             $(".hide-in-zen-mode").removeClass("hidden-by-zen-mode"); |             $(".hide-in-zen-mode,.gutter").removeClass("hidden-by-zen-mode"); | ||||||
|             $("#container").removeClass("zen-mode"); |             $("#container").removeClass("zen-mode"); | ||||||
|             zenModeActive = false; |             zenModeActive = false; | ||||||
|         } |         } | ||||||
|  | |||||||
| @ -271,14 +271,7 @@ body { | |||||||
|     position: relative; |     position: relative; | ||||||
|     background: linear-gradient(to right, var(--main-border-color), transparent); |     background: linear-gradient(to right, var(--main-border-color), transparent); | ||||||
|     height: 1px; |     height: 1px; | ||||||
|     margin-top: 31px; |     margin-top: 32px; | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /* hack for 1 pixel difference in handling between FF and chrome */ |  | ||||||
| @-moz-document url-prefix() { |  | ||||||
|     .tab-row-filler .tab-row-border { |  | ||||||
|         margin-top: 32px; |  | ||||||
|     } |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .note-tab-row .note-tab[active] { | .note-tab-row .note-tab[active] { | ||||||
|  | |||||||
| @ -160,6 +160,10 @@ span.fancytree-node.muted { opacity: 0.6; } | |||||||
|     background-position: center; |     background-position: center; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .zen-mode #center-pane { | ||||||
|  |     width: 100% !important; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| ul.fancytree-container { | ul.fancytree-container { | ||||||
|     outline: none !important; |     outline: none !important; | ||||||
|     background-color: inherit !important; |     background-color: inherit !important; | ||||||
|  | |||||||
| @ -85,7 +85,7 @@ | |||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
| 
 | 
 | ||||||
|         <div class="note-tab-row hide-in-zen-mode"> |         <div class="note-tab-row"> | ||||||
|             <div class="note-tab-row-content"></div> |             <div class="note-tab-row-content"></div> | ||||||
|         </div> |         </div> | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam