diff --git a/frontend/src/lib/components/apps/components/table/AppTable.svelte b/frontend/src/lib/components/apps/components/table/AppTable.svelte
index d0cacc9fb0..384e23aa59 100644
--- a/frontend/src/lib/components/apps/components/table/AppTable.svelte
+++ b/frontend/src/lib/components/apps/components/table/AppTable.svelte
@@ -37,9 +37,9 @@
}
const options = writable
>({
+ ...tableOptions,
data: [],
- columns: [],
- ...tableOptions
+ columns: []
})
let table = createSvelteTable(options)
@@ -67,14 +67,14 @@
const headers = Array.from(new Set(result.flatMap((row) => Object.keys(row))))
$options = {
+ ...tableOptions,
data: filteredResult,
columns: headers.map((header) => {
return {
accessorKey: header,
cell: (info) => info.getValue()
}
- }),
- ...tableOptions
+ })
}
}
@@ -177,7 +177,7 @@
{@const component = renderCell(cell.column.columnDef.cell, context)}
toggleRow(row, rowIndex)}
- class="p-4 whitespace-nowrap text-xs text-gray-900"
+ class="p-4 whitespace-pre-wrap truncate text-xs text-gray-900"
>
{#if typeof cell.column.columnDef.cell != 'string' && cellIsObject(cell.column.columnDef.cell, context)}
{JSON.stringify(cell.column.columnDef.cell(context), null, 4)}
diff --git a/frontend/src/lib/components/apps/components/table/tableOptions.ts b/frontend/src/lib/components/apps/components/table/tableOptions.ts
index edac8def25..24541e1b85 100644
--- a/frontend/src/lib/components/apps/components/table/tableOptions.ts
+++ b/frontend/src/lib/components/apps/components/table/tableOptions.ts
@@ -1,13 +1,16 @@
-import { getCoreRowModel, getPaginationRowModel } from '@tanstack/svelte-table'
+import { getCoreRowModel, getPaginationRowModel, type TableOptions } from '@tanstack/svelte-table'
-const tableOptions = {
+const tableOptions: TableOptions> = {
+ data: [],
+ columns: [],
+ enableColumnResizing: false,
getCoreRowModel: getCoreRowModel(),
getPaginationRowModel: getPaginationRowModel(),
initialState: {
pagination: {
- pageSize: 10
+ pageSize: 25
}
- }
+ },
}
export { tableOptions }
diff --git a/frontend/src/lib/components/apps/editor/ComponentHeader.svelte b/frontend/src/lib/components/apps/editor/ComponentHeader.svelte
index e988f98772..f171513eb6 100644
--- a/frontend/src/lib/components/apps/editor/ComponentHeader.svelte
+++ b/frontend/src/lib/components/apps/editor/ComponentHeader.svelte
@@ -14,9 +14,12 @@
@@ -25,29 +28,31 @@
{#if pointerdown || selected || hover}
{/if}
{#if selected || hover}
{/if}
diff --git a/frontend/src/lib/components/apps/editor/GridEditor.svelte b/frontend/src/lib/components/apps/editor/GridEditor.svelte
index 72655b6623..59dae733c9 100644
--- a/frontend/src/lib/components/apps/editor/GridEditor.svelte
+++ b/frontend/src/lib/components/apps/editor/GridEditor.svelte
@@ -116,7 +116,7 @@
>
|