Skip to content

Commit

Permalink
fix: item link
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanalhattami committed Oct 15, 2023
1 parent ffdf55c commit c82618c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/views/components/item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
'fi-active fi-sidebar-item-active' => $active,
])>

<a {{ \Filament\Support\generate_href_html($url, $shouldOpenUrlInNewTab) }}
<a href="{{ $url }}"
@if ($shouldOpenUrlInNewTab)
target="_blank"
@endif
x-on:click="window.matchMedia(`(max-width: 1024px)`).matches && $store.sidebar.close()"
@class([
'fi-sidebar-item-button relative flex items-center justify-center gap-x-3 rounded-lg px-2 py-2 text-sm outline-none transition duration-75 hover:bg-gray-100 focus:bg-gray-100 dark:hover:bg-white/5 dark:focus:bg-white/5',
Expand Down

0 comments on commit c82618c

Please sign in to comment.