From 513636e1e0461628056edc858064b56f53e97e3e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 4 Jul 2025 19:32:22 +0300 Subject: [PATCH] feat(views/table): hide column titles for small ones --- apps/client/src/widgets/view_widgets/table_view/data.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/view_widgets/table_view/data.ts b/apps/client/src/widgets/view_widgets/table_view/data.ts index 9866fbb49..dba476fb1 100644 --- a/apps/client/src/widgets/view_widgets/table_view/data.ts +++ b/apps/client/src/widgets/view_widgets/table_view/data.ts @@ -64,6 +64,7 @@ export async function buildData(parentNote: FNote, info: PromotedAttributeInform } export function buildColumnDefinitions(info: PromotedAttributeInformation[]) { + const emptyTitleFormatter = () => ""; const columnDefs: ColumnDefinition[] = [ { title: "#", @@ -75,7 +76,8 @@ export function buildColumnDefinitions(info: PromotedAttributeInformation[]) { }, { field: "iconClass", - title: "Icon", + title: "Note icon", + titleFormatter: emptyTitleFormatter, width: 40, headerSort: false, hozAlign: "center", @@ -109,11 +111,12 @@ export function buildColumnDefinitions(info: PromotedAttributeInformation[]) { // End actions columnDefs.push({ - title: "Open note", + title: "Open note button", width: 40, hozAlign: "center", headerSort: false, formatter: () => ``, + titleFormatter: emptyTitleFormatter, cellClick: (e, cell) => { const noteId = cell.getRow().getCell("noteId").getValue(); if (noteId) {