feat: add a setting to enable pointer on hover (#1585)

* feat: added striped table mode for visual clarity

also added a settings toggle to revert to original behavior

* fix: add pointer on hover behind a toggle

* fix: add `x-link` class to the selector

* fix: indicate that this is global forceful overide
This commit is contained in:
kubectl
2026-01-19 01:33:01 +01:00
committed by GitHub
parent 29b83c5b89
commit cacbf742d1
5 changed files with 79 additions and 9 deletions

View File

@@ -34,7 +34,9 @@
<TableBody>
<template v-if="table.getRowModel().rows?.length">
<template v-for="row in table.getRowModel().rows" :key="row.id">
<TableRow @click="handleRowClick(row)">
<TableRow
@click="handleRowClick(row)"
:class="isDataTableStriped ? 'even:bg-muted/20' : ''">
<TableCell
v-for="cell in row.getVisibleCells()"
:key="cell.id"
@@ -125,6 +127,11 @@
} from '../pagination';
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '../table';
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../select';
import { useAppearanceSettingsStore } from '@/stores/';
import { storeToRefs } from 'pinia';
const appearanceSettingsStore = useAppearanceSettingsStore();
const { isDataTableStriped } = storeToRefs(appearanceSettingsStore);
const props = defineProps({
table: {