Refactor Proxmox server views for improved UI consistency and usability
- Updated server card component to use new UI elements and improved layout. - Enhanced status display with badges and better status indicators. - Refined quick info row for server details with consistent styling. - Reorganized server configuration statistics into stat cards for clarity. - Improved help modals for statistics and storage management sections. - Streamlined alerts and warnings for better user experience. - Updated storage management view to utilize new UI components and improve readability.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{{--
|
||||
Table Row Component - TailServer Theme
|
||||
--}}
|
||||
|
||||
@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 border-neutral/10 cursor-pointer transition-colors duration-150',
|
||||
'hover:bg-primary/5' => $isHoverable,
|
||||
]) }}
|
||||
onclick="window.location='{{ $href }}'"
|
||||
>
|
||||
{{ $slot }}
|
||||
</tr>
|
||||
@else
|
||||
<tr
|
||||
{{ $attributes->class([
|
||||
'border-b border-neutral/10 transition-colors duration-150',
|
||||
'hover:bg-neutral/5' => $isHoverable,
|
||||
'cursor-pointer hover:bg-primary/5' => $clickable,
|
||||
]) }}
|
||||
>
|
||||
{{ $slot }}
|
||||
</tr>
|
||||
@endif
|
||||
Reference in New Issue
Block a user