From aba7743ecd85ba3345cb9ad44d48570019ea4305 Mon Sep 17 00:00:00 2001 From: Ajay Ghanwat Date: Thu, 6 Nov 2025 16:16:13 +0530 Subject: [PATCH] New Changes with table Classes and Modification --- src/components/Table.astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Table.astro b/src/components/Table.astro index a4751da..f7fcd39 100644 --- a/src/components/Table.astro +++ b/src/components/Table.astro @@ -205,6 +205,7 @@ const id = `table-${Math.random().toString(36).slice(2, 9)}`; dataset.length - 1 != i ? "wr:border-b" : "", "wr:border-gray-300 wr:dark:border-neutral-800", rowCls, + rowClickFn ? "wr:cursor-pointer" : "", ] .filter(Boolean) .join(" ")}">`; @@ -251,7 +252,7 @@ const id = `table-${Math.random().toString(36).slice(2, 9)}`; }; // 📱 Mobile - let card = `
`; + let card = `
`; columns.forEach((col, colIndex) => { let value = row[col.key] ?? "";