Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions resources/views/components/list-grid.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@props(['classAttributes' => "mt-2 grid grid-cols-1 lg:grid-cols-2 gap-4"])
@props(['classAttributes' => null])

<div class="{{ $classAttributes }}">
<div class="{{ $classAttributes ?? 'mt-2 grid grid-cols-1 lg:grid-cols-2 gap-4'}}">
Comment on lines +1 to +3
Copy link

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, consider setting the default grid classes in the @props declaration (e.g., 'classAttributes' => 'mt-2 grid grid-cols-1 lg:grid-cols-2 gap-4') and remove the inline fallback for cleaner code.

Copilot uses AI. Check for mistakes.
{{ $slot }}
</div>
7 changes: 3 additions & 4 deletions resources/views/components/list-image-card.blade.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
@props([
'image',
'imageContainerClassAttributes' => 'h-32 h-32 flex-shrink-0 overflow-hidden',
'imageContainerClassAttributes' => null,
'name',
'role' => null,
'icons' => [],
])

<div class="flex flex-row rounded-xl overflow-hidden transition group">
<div class="{{ $imageContainerClassAttributes }}">
<img src="{{ $image }}" alt="{{ $name }}"
class="w-full h-full object-cover transition-transform duration-300 ease-in-out group-hover:scale-105"/>
<div class="{{ $imageContainerClassAttributes ?? 'h-32 h-32 flex-shrink-0 overflow-hidden' }}">
Comment on lines +3 to +10
Copy link

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider defining the default container classes directly in the @props declaration (e.g., 'imageContainerClassAttributes' => 'h-32 h-32 flex-shrink-0 overflow-hidden') and removing the inline fallback to simplify the template logic.

Copilot uses AI. Check for mistakes.
<img src="{{ $image }}" alt="{{ $name }}" class="w-full h-full object-cover transition-transform duration-300 ease-in-out group-hover:scale-105"/>
</div>

<div class="flex flex-col justify-center p-4 space-y-1">
Expand Down