diff --git a/frontend/components/ui/UiDataTable.vue b/frontend/components/ui/UiDataTable.vue index e385879..b3a4eee 100644 --- a/frontend/components/ui/UiDataTable.vue +++ b/frontend/components/ui/UiDataTable.vue @@ -19,7 +19,10 @@ v-for="(item, index) in paginatedItems" :key="item.id ?? index" class="grid gap-6 px-4 py-3 text-sm border-t border-slate-200" - :class="rowClickable ? 'hover:bg-slate-50 cursor-pointer' : ''" + :class="[ + rowClickable ? 'hover:bg-slate-50 cursor-pointer' : '', + rowClass ? rowClass(item) : '' + ]" :style="{ gridTemplateColumns: gridCols }" :role="rowClickable ? 'button' : undefined" :tabindex="rowClickable ? 0 : undefined" @@ -83,12 +86,12 @@