Skip to content

Commit

Permalink
fix: support spa
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanalhattami committed Sep 11, 2024
1 parent 84f2a4f commit d914c18
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .idea/git_toolbox_prj.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions resources/views/components/item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
'fi-active fi-sidebar-item-active' => $active,
])>

<a href="{{ $url }}"
@if ($shouldOpenUrlInNewTab)
target="_blank"
@endif
<a href="{{ $url }}" {{ \Filament\Support\generate_href_html($url, $shouldOpenUrlInNewTab) }}
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
5 changes: 5 additions & 0 deletions src/PageNavigationItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ public function getLabel(): string
? __($label)
: $label;
}

public function isWireNavigate(): bool
{

}
}

0 comments on commit d914c18

Please sign in to comment.