mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +01:00 
			
		
		
		
	feat(next): improve left margin to allow moving
This commit is contained in:
		
							parent
							
								
									b9129f62b4
								
							
						
					
					
						commit
						aefd139592
					
				| @ -1278,6 +1278,10 @@ textarea { | |||||||
|     color: var(--muted-text-color); |     color: var(--muted-text-color); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | body.electron:not(.native-titlebar) .tab-row-container { | ||||||
|  |     padding-left: 2em; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| #tab-row-left-spacer { | #tab-row-left-spacer { | ||||||
|     width: env(titlebar-area-x); |     width: env(titlebar-area-x); | ||||||
|     -webkit-app-region: drag; |     -webkit-app-region: drag; | ||||||
|  | |||||||
| @ -28,13 +28,15 @@ function index(req: Request, res: Response) { | |||||||
|     // The page is restored from cache, but the API call fail.
 |     // The page is restored from cache, but the API call fail.
 | ||||||
|     res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); |     res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); | ||||||
| 
 | 
 | ||||||
|  |     const isElectron = utils.isElectron(); | ||||||
|     res.render(view, { |     res.render(view, { | ||||||
|         csrfToken: csrfToken, |         csrfToken: csrfToken, | ||||||
|         themeCssUrl: getThemeCssUrl(options.theme), |         themeCssUrl: getThemeCssUrl(options.theme), | ||||||
|         headingStyle: options.headingStyle, |         headingStyle: options.headingStyle, | ||||||
|         layoutOrientation: options.layoutOrientation, |         layoutOrientation: options.layoutOrientation, | ||||||
|         platform: process.platform, |         platform: process.platform, | ||||||
|         isElectron: utils.isElectron(), |         isElectron, | ||||||
|  |         hasNativeTitleBar: (isElectron && options.nativeTitleBarVisible === "true"), | ||||||
|         mainFontSize: parseInt(options.mainFontSize), |         mainFontSize: parseInt(options.mainFontSize), | ||||||
|         treeFontSize: parseInt(options.treeFontSize), |         treeFontSize: parseInt(options.treeFontSize), | ||||||
|         detailFontSize: parseInt(options.detailFontSize), |         detailFontSize: parseInt(options.detailFontSize), | ||||||
|  | |||||||
| @ -6,7 +6,7 @@ | |||||||
|     <link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest"> |     <link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest"> | ||||||
|     <title>TriliumNext Notes</title> |     <title>TriliumNext Notes</title> | ||||||
| </head> | </head> | ||||||
| <body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %> <%= isElectron ? 'electron' : '' %>"> | <body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %> <%= isElectron ? 'electron' : '' %> <%= hasNativeTitleBar ? 'native-titlebar' : '' %>"> | ||||||
| <noscript><%= t("javascript-required") %></noscript> | <noscript><%= t("javascript-required") %></noscript> | ||||||
| 
 | 
 | ||||||
| <script> | <script> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran