feat(views/table): improve default layout

This commit is contained in:
Elian Doran 2025-07-04 19:37:05 +03:00
parent 513636e1e0
commit 5f8ef0395b
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,8 @@ export function buildColumnDefinitions(info: PromotedAttributeInformation[]) {
{
field: "title",
title: "Title",
editor: "input"
editor: "input",
width: 400
}
];

View File

@ -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),