Skip to content

Commit 5fa2cea

Browse files
fix: table empty state layout (#337)
1 parent 7cd9181 commit 5fa2cea

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ui/primitives/table.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ const TableEmptyState = ({
151151
children,
152152
className,
153153
}: TableEmptyStateProps) => (
154-
<TableRow className="flex w-full">
155-
<TableCell className="flex flex-1 p-0" colSpan={colSpan}>
154+
<TableRow>
155+
<TableCell className="p-0" colSpan={colSpan}>
156156
<div
157157
className={cn(
158158
'w-full gap-2 relative flex flex-col justify-center items-center',
@@ -167,7 +167,7 @@ const TableEmptyState = ({
167167
<TableEmptyRowBorder className="absolute bottom-0 left-0 rotate-180 opacity-99" />
168168
<TableEmptyRowBorder className="absolute bottom-0 right-0 opacity-99" />
169169
{index === 1 ? (
170-
<div className="text-fg prose-body-highlight flex items-center justify-center gap-2 px-2 text-center">
170+
<div className="text-fg prose-body-highlight flex items-center justify-center gap-2 px-2 text-center whitespace-nowrap">
171171
{children}
172172
</div>
173173
) : null}

0 commit comments

Comments
 (0)