Skip to content

Commit

Permalink
Improve UI
Browse files Browse the repository at this point in the history
improve list UI and icons colors
  • Loading branch information
atmonshi authored Feb 11, 2024
1 parent da130d6 commit 5f24cfc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/views/infolists/list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
@endphp
@endif
@php
$color = (isset($item['color']) && filled($item['color'])) ? $item['color'] : 'primary';
$iconColor = (isset($item['iconColor']) && filled($item['iconColor'])) ? $item['iconColor'] : 'primary';
$color = (isset($item['color']) && filled($item['color'])) ? $item['color'] : 'gray';
$iconColor = (isset($item['iconColor']) && filled($item['iconColor'])) ? $item['iconColor'] : 'gray';
@endphp
<li
@style([
Expand All @@ -41,7 +41,7 @@
},
])
>
<a class="flex items-center space-x-3"
<a class="flex items-center space-x-2 rtl:space-x-reverse"
target="@if(isset($item['isNewTab']) && $item['isNewTab']) _blank @else _self @endif"

href="{{ $item['url'] }}"
Expand All @@ -55,10 +55,10 @@
) => $iconColor !== 'gray',
])
@class([
'h-5 w-5 flex justify-center items-center rounded-full',
'',
match ($iconColor) {
'gray' => 'bg-gray-600 dark:bg-gray-500 text-white dark:text-gray-500',
default => 'bg-custom-600 dark:bg-custom-500 text-white dark:text-custom-500',
'gray' => 'text-gray-800 dark:text-gray-500',
default => 'text-custom-800 dark:text-custom-500',
},
])
>
Expand Down Expand Up @@ -88,4 +88,4 @@
</a>--}}
@endforeach
</ul>
</div>
</div>

0 comments on commit 5f24cfc

Please sign in to comment.