mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +02:00
feat(views/table): improve default layout
This commit is contained in:
parent
513636e1e0
commit
5f8ef0395b
@ -94,7 +94,8 @@ export function buildColumnDefinitions(info: PromotedAttributeInformation[]) {
|
||||
{
|
||||
field: "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);
|
||||
|
||||
this.api = new Tabulator(el, {
|
||||
layout: "fitDataFill",
|
||||
index: "noteId",
|
||||
columns: columnDefs,
|
||||
data: await buildRowDefinitions(this.parentNote, notes, info),
|
||||
|
Loading…
x
Reference in New Issue
Block a user