Skip to content

Commit 983c733

Browse files
Icon: prevent shrinking (#962)
1 parent f3bfdbe commit 983c733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/View/Components/Icon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function render(): View|Closure|string
4141
@endif
4242
<x-svg
4343
:name="$icon()"
44-
{{ $attributes->class(['inline', 'w-5 h-5' => !Str::contains($attributes->get('class') ?? '', ['w-', 'h-']) ]) }}
44+
{{ $attributes->class(['inline flex-shrink-0', 'w-5 h-5' => !Str::contains($attributes->get('class') ?? '', ['w-', 'h-']) ]) }}
4545
/>
4646
4747
@if(strlen($label ?? '') > 0)

0 commit comments

Comments
 (0)