From 758278a6766dcb914ac97f72077035ab0809ff30 Mon Sep 17 00:00:00 2001 From: sadeghbarati Date: Sun, 10 Sep 2023 13:03:09 +0330 Subject: [PATCH] docs: fix `DataTableDemo.vue` scroll-x on mobile devices --- .../src/lib/registry/default/example/DataTableDemo.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/www/src/lib/registry/default/example/DataTableDemo.vue b/apps/www/src/lib/registry/default/example/DataTableDemo.vue index edb18c80..e6e8a194 100644 --- a/apps/www/src/lib/registry/default/example/DataTableDemo.vue +++ b/apps/www/src/lib/registry/default/example/DataTableDemo.vue @@ -103,7 +103,7 @@ const columns: ColumnDef[] = [ return h(Button, { variant: 'ghost', onClick: () => column.toggleSorting(column.getIsSorted() === 'asc'), - }, ['Email', h(ArrowUpDown, { class: 'ml-2 h-4 w-4' })]) + }, () => ['Email', h(ArrowUpDown, { class: 'ml-2 h-4 w-4' })]) }, cell: ({ row }) => h('div', { class: 'lowercase' }, row.getValue('email')), }, @@ -128,9 +128,9 @@ const columns: ColumnDef[] = [ cell: ({ row }) => { const payment = row.original - return h(DropdownAction, { + return h('div', { class: 'relative' }, h(DropdownAction, { payment, - }) + })) }, }, ] @@ -162,7 +162,7 @@ const table = useVueTable({