Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
199ocero committed Jan 5, 2024
1 parent 1bb6513 commit a89f025
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion resources/views/infolists/components/activity-section.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,24 @@
<!-- Item -->
<div class="flex gap-x-3">
<!-- Icon -->
{{ $activityIcon }}
@if($activityIcon)
{{ $activityIcon }}
@else
<div
class="relative last:after:hidden after:absolute after:top-7 after:bottom-0 after:start-4 after:w-px after:-translate-x-[0.5px] after:bg-gray-200 dark:after:bg-gray-700">
<div @class([
'relative z-10 flex items-center justify-center',
match (IconEntrySize::Medium) {
IconEntrySize::Small, 'sm' => 'w-7 h-7',
IconEntrySize::Medium, 'md' => 'w-8 h-8',
IconEntrySize::Large, 'lg' => 'w-9 h-9',
default => 'w-8 h-8',
},
])>
<div class="w-2 h-2 bg-gray-400 rounded-full dark:bg-gray-600"></div>
</div>
</div>
@endif
<!-- End Icon -->

<!-- Right Content -->
Expand Down
2 changes: 1 addition & 1 deletion src/Components/ActivitySection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a89f025

Please sign in to comment.