mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +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",
|
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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user