Skip to content

Commit e011818

Browse files
committed
fix: cannot render field type with custom icon on template editor
1 parent 8b02287 commit e011818

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

resources/views/instructions/property-type-instructions.blade.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,24 @@
7676

7777
<x-filament::section
7878
collapsible
79-
:icon="$icon"
80-
icon-size="md"
8179
compact
8280
x-tooltip="{
8381
content: 'Field type: {{ $fieldTypeName }}',
8482
placement: 'right',
8583
theme: $store.theme,
8684
}"
8785
>
86+
<x-slot name="icon">
87+
<x-filament::icon
88+
:icon="$icon"
89+
:alias="$icon"
90+
@class([
91+
'fi-section-header-icon self-start',
92+
'text-gray-400 dark:text-gray-500',
93+
'h-5 w-5 mt-0.5',
94+
])
95+
/>
96+
</x-slot>
8897
<x-slot name="heading">
8998
{{ $fieldKey }}
9099
</x-slot>

0 commit comments

Comments
 (0)