Skip to content

Commit

Permalink
Merge pull request #13942 from filamentphp/fix/header-actions-render-…
Browse files Browse the repository at this point in the history
…hook-alignment

fix: Header actions render hook alignment
  • Loading branch information
danharrin authored Aug 14, 2024
2 parents 6f7ff05 + 8b6ea50 commit e801bd4
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions packages/panels/resources/views/components/header/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ class="fi-header-subheading mt-2 max-w-2xl text-lg text-gray-600 dark:text-gray-
@endif
</div>

{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_HEADER_ACTIONS_BEFORE, scopes: $this->getRenderHookScopes()) }}
<div
@class([
'flex shrink-0 items-center gap-3',
'sm:mt-7' => $breadcrumbs,
])
>
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_HEADER_ACTIONS_BEFORE, scopes: $this->getRenderHookScopes()) }}

@if ($actions)
<x-filament::actions
:actions="$actions"
@class([
'shrink-0',
'sm:mt-7' => $breadcrumbs,
])
/>
@endif
@if ($actions)
<x-filament::actions :actions="$actions" />
@endif

{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_HEADER_ACTIONS_AFTER, scopes: $this->getRenderHookScopes()) }}
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_HEADER_ACTIONS_AFTER, scopes: $this->getRenderHookScopes()) }}
</div>
</header>

0 comments on commit e801bd4

Please sign in to comment.