Skip to content

Commit

Permalink
[ADVAPP-872]: Fix the noWidgetData view which has broken height (cany…
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin authored Sep 23, 2024
1 parent eca4227 commit 5147fbc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function render(): View
$data = $data->filter();

if (! count($data)) {
return view('livewire.noWidgetData');
return view('livewire.no-widget-data');
}

return view(static::$view, $this->getViewData());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function render(): View
[$emailCount, $cloneCount] = $this->getData()['datasets'][0]['data'];

if ($emailCount == 0 && $cloneCount == 0) {
return view('livewire.noWidgetData');
return view('livewire.no-widget-data');
}

return view(static::$view, $this->getViewData());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,15 @@
</COPYRIGHT>
--}}
@php
use Filament\Support\Facades\FilamentView;
$color = $this->getColor();
$heading = $this->getHeading();
@endphp
<x-filament-widgets::widget class="fi-wi-chart">

<x-filament-widgets::widget>
<x-filament::section
class="relative h-full pt-20"
class="flex h-full flex-col [&_.fi-section-content-ctn]:flex-1 [&_.fi-section-content]:h-full"
:heading="$heading"
>
<div class="inset-0 flex items-center justify-center lg:absolute">
<div class="flex h-full items-center justify-center pb-3 text-sm text-gray-600 dark:text-gray-500">
Insufficient Data
</div>
</x-filament::section>
Expand Down

0 comments on commit 5147fbc

Please sign in to comment.