-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
67 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
@php | ||
<li | ||
{{ $attributes->merge(['style' => "--color-custom: {$color};"])->class(['flex gap-2', 'items-center flex-wrap' => blank($image), 'items-start' => filled($image)]) }}> | ||
@if ($image) | ||
<img src="{{ $image }}" alt="{{ $label }}" class="w-12 h-12" /> | ||
|
||
@endphp | ||
<div class="overflow-hidden"> | ||
<div class="flex items-center gap-2"> | ||
<span class="block w-4 h-4 bg-custom shrink-0"></span> | ||
<span class="truncate">{{ $label }}</span> | ||
</div> | ||
<span>{{ $description }}</span> | ||
</div> | ||
@else | ||
<span class="block w-4 h-4 bg-custom shrink-0"></span> | ||
|
||
<li {{ $attributes->merge([ | ||
'class' => 'flex items-center gap-2', | ||
'style' => "--color-custom: {$color};", | ||
]) }}> | ||
<span class="block w-4 h-4 bg-custom"></span> | ||
<span>{{ $label }}</span> | ||
<span>{{ $description }}</span> | ||
<span class="inline">{{ $label }}</span> | ||
<span class="inline">{{ $description }}</span> | ||
@endif | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters