Skip to content

Commit

Permalink
fix: center empty table element #146
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuechlin committed Jan 13, 2023
1 parent 3386671 commit cbfafc8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -428,15 +428,13 @@ export function DataGrid<TData extends RowData>({
})
) : (
<tr className={classes.tr} role="row">
<td colSpan={table.getVisibleLeafColumns().length}>
<Stack align="center" spacing="xs">
{empty || (
<>
<BoxOff size={64} />
<Text weight="bold">No Data</Text>
</>
)}
</Stack>
<td style={{ width: '100%' }}>
{empty || (
<Stack align="center" spacing="xs">
<BoxOff size={64} />
<Text weight="bold">No Data</Text>
</Stack>
)}
</td>
</tr>
)}
Expand Down

0 comments on commit cbfafc8

Please sign in to comment.