mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	feat(client): move toggle sidebar to tab bar on horizontal layout
This commit is contained in:
		
							parent
							
								
									29d6ef85ff
								
							
						
					
					
						commit
						ca6687208b
					
				| @ -101,6 +101,7 @@ export default class DesktopLayout { | |||||||
|             .class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout") |             .class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout") | ||||||
|             .optChild(launcherPaneIsHorizontal, new FlexContainer('row') |             .optChild(launcherPaneIsHorizontal, new FlexContainer('row') | ||||||
|                 .class("tab-row-container") |                 .class("tab-row-container") | ||||||
|  |                 .child(new LeftPaneToggleWidget(true)) | ||||||
|                 .child(new TabRowWidget().class("full-width")) |                 .child(new TabRowWidget().class("full-width")) | ||||||
|                 .child(new TitleBarButtonsWidget()) |                 .child(new TitleBarButtonsWidget()) | ||||||
|                 .css('height', '40px') |                 .css('height', '40px') | ||||||
| @ -244,7 +245,6 @@ export default class DesktopLayout { | |||||||
|             launcherPane = new FlexContainer("row") |             launcherPane = new FlexContainer("row") | ||||||
|                 .css("height", "53px") |                 .css("height", "53px") | ||||||
|                 .class("horizontal") |                 .class("horizontal") | ||||||
|                 .child(new LeftPaneToggleWidget(true)) |  | ||||||
|                 .child(new LauncherContainer(true)) |                 .child(new LauncherContainer(true)) | ||||||
|                 .child(new GlobalMenuWidget(true)) |                 .child(new GlobalMenuWidget(true)) | ||||||
|         } else { |         } else { | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ export default class LeftPaneToggleWidget extends CommandButtonWidget { | |||||||
|     constructor(isHorizontalLayout) { |     constructor(isHorizontalLayout) { | ||||||
|         super(); |         super(); | ||||||
| 
 | 
 | ||||||
|         this.class("launcher-button"); |         this.class(isHorizontalLayout ? "toggle-button" : "launcher-button"); | ||||||
| 
 | 
 | ||||||
|         this.settings.icon = () => options.is('leftPaneVisible') |         this.settings.icon = () => options.is('leftPaneVisible') | ||||||
|             ? "bx-chevrons-left" |             ? "bx-chevrons-left" | ||||||
|  | |||||||
| @ -1269,3 +1269,13 @@ textarea { | |||||||
|     color: var(--muted-text-color); |     color: var(--muted-text-color); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .tab-row-container .toggle-button { | ||||||
|  |     background: transparent; | ||||||
|  |     appearance: none; | ||||||
|  |     border: 0; | ||||||
|  |     width: 24px; | ||||||
|  |     height: 24px; | ||||||
|  |     color: var(--launcher-pane-text-color); | ||||||
|  |     margin: 8px 10px;     | ||||||
|  |     font-size: 18px; | ||||||
|  | } | ||||||
|  | |||||||
| @ -614,6 +614,10 @@ html body #left-pane .quick-search:focus-within .search-button:hover, | |||||||
|     height: var(--tab-bar-height) !important; |     height: var(--tab-bar-height) !important; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .tab-row-container .toggle-button { | ||||||
|  |     margin: 13px 10px !important; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .tab-row-widget-container { | .tab-row-widget-container { | ||||||
|     margin-top: calc((var(--tab-bar-height) - var(--tab-height)) / 2); |     margin-top: calc((var(--tab-bar-height) - var(--tab-height)) / 2); | ||||||
|     height: var(--tab-height) !important; |     height: var(--tab-height) !important; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran