++ fix permessi e mobile portrait

This commit is contained in:
Francesco Picone
2026-07-25 23:48:56 +02:00
parent 34415862d2
commit 69072b6f09
17 changed files with 194 additions and 56 deletions

View File

@@ -26,7 +26,7 @@
{{-- Table --}}
<div class="bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200 text-sm table-striped">
<table class="min-w-full divide-y divide-gray-200 text-sm table-striped table-cards">
<thead style="background:linear-gradient(180deg,#f9fafb,#f3f4f6)">
<tr>
<th class="px-3 py-3 text-left text-xs font-semibold text-gray-600 uppercase">Data/Ora</th>
@@ -39,9 +39,9 @@
<tbody class="divide-y divide-gray-100">
@forelse($activities as $activity)
<tr class="hover:bg-indigo-50/30 transition-colors">
<td class="px-3 py-2 text-xs text-gray-500 whitespace-nowrap">{{ $activity->created_at->format('d/m/Y H:i:s') }}</td>
<td class="px-3 py-2 text-xs">{{ $activity->causer?->name ?? data_get($activity->properties, 'causer_name') ?? 'Sistema' }}</td>
<td class="px-3 py-2">
<td data-label="Data/Ora" class="px-3 py-2 text-xs text-gray-500 whitespace-nowrap">{{ $activity->created_at->format('d/m/Y H:i:s') }}</td>
<td data-label="Utente" class="px-3 py-2 text-xs">{{ $activity->causer?->name ?? data_get($activity->properties, 'causer_name') ?? 'Sistema' }}</td>
<td data-label="Evento" class="px-3 py-2">
<span class="inline-flex px-2 py-0.5 text-xs font-medium rounded-full
{{ match($activity->description) {
'created' => 'bg-green-100 text-green-800',
@@ -56,14 +56,14 @@
{{ $activity->description }}
</span>
</td>
<td class="px-3 py-2 text-xs text-gray-600">
<td data-label="Soggetto" class="px-3 py-2 text-xs text-gray-600">
@if($activity->subject_type)
{{ class_basename($activity->subject_type) }} #{{ $activity->subject_id }}
@else
-
@endif
</td>
<td class="px-3 py-2 text-xs text-gray-500">
<td data-label="Dettagli" class="px-3 py-2 text-xs text-gray-500">
@if($activity->properties->isNotEmpty())
<details>
<summary class="cursor-pointer text-indigo-600 hover:text-indigo-800">Mostra</summary>