mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-27 08:16:40 +01:00 
			
		
		
		
	feat(book/table): set full height
This commit is contained in:
		| @@ -2,6 +2,16 @@ import ViewMode, { ViewModeArgs } from "./view_mode"; | |||||||
|  |  | ||||||
| const TPL = /*html*/` | const TPL = /*html*/` | ||||||
| <div class="table-view"> | <div class="table-view"> | ||||||
|  |     <style> | ||||||
|  |     .table-view { | ||||||
|  |         overflow: hidden; | ||||||
|  |         position: relative; | ||||||
|  |         height: 100%; | ||||||
|  |         user-select: none; | ||||||
|  |         padding: 10px; | ||||||
|  |     } | ||||||
|  |     </style> | ||||||
|  |  | ||||||
|     <p>Table view goes here.</p> |     <p>Table view goes here.</p> | ||||||
| </div> | </div> | ||||||
| `; | `; | ||||||
| @@ -17,6 +27,10 @@ export default class TableView extends ViewMode { | |||||||
|         args.$parent.append(this.$root); |         args.$parent.append(this.$root); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     get isFullHeight(): boolean { | ||||||
|  |         return true; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     async renderList() { |     async renderList() { | ||||||
|         return this.$root; |         return this.$root; | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user