Skip to content

Commit 2fd739e

Browse files
committed
fix formatting
1 parent 5447c49 commit 2fd739e

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

resources/views/components/create-menu.blade.php

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,29 @@
77
<div class="quick-create-component"
88
@if($keyBindings)
99
x-data="{
10-
toggleDropdown() {
11-
this.$refs.triggerButton.click()
12-
this.$refs.triggerButton.focus()
13-
}
14-
}"
10+
toggleDropdown() {
11+
this.$refs.triggerButton.click()
12+
this.$refs.triggerButton.focus()
13+
}
14+
}"
1515
@endif
1616
>
1717
@if ($resources && $this->shouldBeHidden() === false)
1818
<x-filament::dropdown placement="bottom-end" :teleport="true">
1919
<x-slot name="trigger">
2020
<button
21+
@if($keyBindings)
2122
x-ref="triggerButton"
22-
@click="dropdownOpen = !dropdownOpen"
23-
@if($keyBindings)
24-
x-ref="triggerButton"
2523
x-mousetrap.global.{{ $keyBindings }}="toggleDropdown"
26-
@endif
27-
@class([
28-
'flex flex-shrink-0 bg-gray-100 items-center justify-center text-primary-500 hover:text-primary-900 dark:bg-gray-800 hover:bg-primary-500 dark:hover:bg-primary-500',
29-
'rounded-full' => $rounded,
30-
'rounded-md' => ! $rounded,
31-
'w-8 h-8' => ! $label,
32-
'py-1 ps-3 pe-4 gap-1' => $label,
33-
])
34-
aria-label="{{ __('filament-quick-create::quick-create.button_label') }}"
24+
@endif
25+
@class([
26+
'flex flex-shrink-0 bg-gray-100 items-center justify-center text-primary-500 hover:text-primary-900 dark:bg-gray-800 hover:bg-primary-500 dark:hover:bg-primary-500',
27+
'rounded-full' => $rounded,
28+
'rounded-md' => ! $rounded,
29+
'w-8 h-8' => ! $label,
30+
'py-1 ps-3 pe-4 gap-1' => $label,
31+
])
32+
aria-label="{{ __('filament-quick-create::quick-create.button_label') }}"
3533
>
3634
<x-filament::icon
3735
alias="filament-quick-create::add"

0 commit comments

Comments
 (0)