From a89f025172db62c65010c54d854922766aa8ff00 Mon Sep 17 00:00:00 2001 From: 199ocero <199ocero@gmail.com> Date: Sat, 6 Jan 2024 07:54:23 +0800 Subject: [PATCH] minor fix --- .../components/activity-section.blade.php | 19 ++++++++++++++++++- src/Components/ActivitySection.php | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) 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); }