From 0545c9ded3006dc84b393a076f91268e14aa69ae Mon Sep 17 00:00:00 2001 From: Jeremy Angele <131715596+angelej@users.noreply.github.com> Date: Thu, 6 Feb 2025 22:36:39 +0100 Subject: [PATCH] fix: vertical centering no-results on exceptions card (#439) --- resources/views/livewire/exceptions.blade.php | 92 +++++++++---------- 1 file changed, 45 insertions(+), 47 deletions(-) diff --git a/resources/views/livewire/exceptions.blade.php b/resources/views/livewire/exceptions.blade.php index 321ef0d3..1091981f 100644 --- a/resources/views/livewire/exceptions.blade.php +++ b/resources/views/livewire/exceptions.blade.php @@ -22,54 +22,52 @@ -
- @if ($exceptions->isEmpty()) - - @else - - - - - - - - - Type - Latest - Count + @if ($exceptions->isEmpty()) + + @else + + + + + + + + + Type + Latest + Count + + + + @foreach ($exceptions->take(100) as $exception) + + + + + {{ $exception->class }} + +

+ {{ $exception->location }} +

+
+ + {{ $exception->latest->ago(syntax: Carbon\CarbonInterface::DIFF_ABSOLUTE, short: true) }} + + + @if ($config['sample_rate'] < 1) + ~{{ number_format($exception->count * (1 / $config['sample_rate'])) }} + @else + {{ number_format($exception->count) }} + @endif + -
- - @foreach ($exceptions->take(100) as $exception) - - - - - {{ $exception->class }} - -

- {{ $exception->location }} -

-
- - {{ $exception->latest->ago(syntax: Carbon\CarbonInterface::DIFF_ABSOLUTE, short: true) }} - - - @if ($config['sample_rate'] < 1) - ~{{ number_format($exception->count * (1 / $config['sample_rate'])) }} - @else - {{ number_format($exception->count) }} - @endif - - - @endforeach - -
- @endif + @endforeach + + + @endif - @if ($exceptions->count() > 100) -
Limited to 100 entries
- @endif -
+ @if ($exceptions->count() > 100) +
Limited to 100 entries
+ @endif