Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/ts/components/ui/table/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function DataTable<TData, TValue = any>(
<TableHeader>
<For each={table.getHeaderGroups()}>
{(headerGroup) => (
<TableRow class="odd:bg-bg">
<TableRow>
<For each={headerGroup.headers}>
{(header) => (
<Conditional
Expand Down
10 changes: 8 additions & 2 deletions frontend/src/ts/components/ui/table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ const TableHeader: Component<ComponentProps<"thead">> = (props) => {
const TableBody: Component<ComponentProps<"tbody">> = (props) => {
const [local, others] = splitProps(props, ["class"]);
return (
<tbody class={cn("text-sm xl:text-base", local.class)} {...others}></tbody>
<tbody
class={cn(
"text-sm xl:text-base [&>tr:nth-child(odd)>td]:bg-sub-alt",
local.class,
)}
{...others}
></tbody>
);
};

Expand All @@ -35,7 +41,7 @@ const TableFooter: Component<ComponentProps<"tfoot">> = (props) => {

const TableRow: Component<ComponentProps<"tr">> = (props) => {
const [local, others] = splitProps(props, ["class"]);
return <tr class={cn("odd:bg-sub-alt", local.class)} {...others}></tr>;
return <tr class={cn(local.class)} {...others}></tr>;
};

const TableHead: Component<ComponentProps<"th">> = (props) => {
Expand Down