Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

style(ui-tables): fix position of `No results.` text if table has no data (#5043)

marliessophief660b80438b4
diff --git a/web/src/components/table/data-table.tsx b/web/src/components/table/data-table.tsx
index 8aa5c8aa15..7b5b411f50 100644
--- a/web/src/components/table/data-table.tsx
+++ b/web/src/components/table/data-table.tsx
@@ -422,9 +422,9 @@ function TableBodyComponent<TData>({
</TableRow>
))
) : (
- <TableRow>
- <TableCell colSpan={columns.length} className="h-24 text-center">
- <div>
+ <TableRow className="hover:bg-transparent">
+ <TableCell colSpan={columns.length} className="relative h-24">
+ <div className="pointer-events-none fixed left-[50%] flex -translate-y-1/2 items-center justify-center">
No results.{" "}
{help && (
<DocPopup description={help.description} href={help.href} />