Files
Virtnet.bond/extensions/Servers/Proxmox/views/components/ui/table-row.blade.php
Joseph.Rawlings 7190d7a818 refactor: update UI components to shadcn-style
- Refactored select component to align with shadcn design principles.
- Updated server status indicator component for consistency with shadcn style.
- Modified spinner component to follow shadcn design guidelines.
- Enhanced stat card component with shadcn-inspired styles.
- Adjusted tab panel component to reflect shadcn design updates.
- Revamped table row and table data cell components to match shadcn aesthetics.
- Updated table header cell component for improved styling consistency.
- Refined table component to align with shadcn design principles.
- Enhanced tabs component with shadcn-inspired styles.
- Updated toggle component to follow shadcn design guidelines.
- Refactored tooltip component to align with shadcn design principles.
- Updated server card component to reflect shadcn-inspired design.
2025-12-17 11:47:42 -05:00

39 lines
844 B
PHP

{{--
Table Row Component - shadcn-style
--}}
@props([
'clickable' => false,
'href' => null,
'hoverable' => null,
])
@php
// Check parent table's hoverable attribute if not explicitly set
$isHoverable = $hoverable ?? true;
@endphp
@if($href)
<tr
{{ $attributes->class([
'border-b transition-colors cursor-pointer',
'hover:bg-muted/50' => $isHoverable,
'data-[state=selected]:bg-muted',
]) }}
onclick="window.location='{{ $href }}'"
>
{{ $slot }}
</tr>
@else
<tr
{{ $attributes->class([
'border-b transition-colors',
'hover:bg-muted/50' => $isHoverable,
'cursor-pointer' => $clickable,
'data-[state=selected]:bg-muted',
]) }}
>
{{ $slot }}
</tr>
@endif