diff --git a/resources/views/infolists/components/activity-section.blade.php b/resources/views/infolists/components/activity-section.blade.php index f16ea5d..9e1a690 100644 --- a/resources/views/infolists/components/activity-section.blade.php +++ b/resources/views/infolists/components/activity-section.blade.php @@ -53,7 +53,24 @@
- {{ $activityIcon }} + @if($activityIcon) + {{ $activityIcon }} + @else +
+
'w-7 h-7', + IconEntrySize::Medium, 'md' => 'w-8 h-8', + IconEntrySize::Large, 'lg' => 'w-9 h-9', + default => 'w-8 h-8', + }, + ])> +
+
+
+ @endif diff --git a/src/Components/ActivitySection.php b/src/Components/ActivitySection.php index 036d3ae..e6ff0e7 100644 --- a/src/Components/ActivitySection.php +++ b/src/Components/ActivitySection.php @@ -75,7 +75,7 @@ public function isAside(): bool return (bool) ($this->evaluate($this->isAside) ?? false); } - public function getDescription(): string + public function getDescription(): ?string { return $this->evaluate($this->description); }