mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 01:36:24 +01:00 
			
		
		
		
	feat(views/table): improve default layout
This commit is contained in:
		| @@ -94,7 +94,8 @@ export function buildColumnDefinitions(info: PromotedAttributeInformation[]) { | |||||||
|         { |         { | ||||||
|             field: "title", |             field: "title", | ||||||
|             title: "Title", |             title: "Title", | ||||||
|             editor: "input" |             editor: "input", | ||||||
|  |             width: 400 | ||||||
|         } |         } | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -116,6 +116,7 @@ export default class TableView extends ViewMode<StateInfo> { | |||||||
|         const movableRows = canReorderRows(this.parentNote); |         const movableRows = canReorderRows(this.parentNote); | ||||||
|  |  | ||||||
|         this.api = new Tabulator(el, { |         this.api = new Tabulator(el, { | ||||||
|  |             layout: "fitDataFill", | ||||||
|             index: "noteId", |             index: "noteId", | ||||||
|             columns: columnDefs, |             columns: columnDefs, | ||||||
|             data: await buildRowDefinitions(this.parentNote, notes, info), |             data: await buildRowDefinitions(this.parentNote, notes, info), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user