File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
@if (auth ()-> user ()-> can (' create' , \Parallax \FilamentComments \Models \FilamentComment:: class ) )
3
3
<div class =" space-y-4" >
4
4
{{ $this -> form } }
5
-
5
+
6
6
<x-filament::button
7
7
wire:click =" create"
8
8
color =" primary"
13
13
@endif
14
14
15
15
@if (count ($comments ) )
16
- <x-filament::grid class =" gap-4" >
16
+
17
+ <div class =" space-y-2 flex flex-col" >
17
18
@foreach ($comments as $comment )
18
19
<div class =" fi-in-repeatable-item block rounded-xl bg-white p-4 shadow-sm ring-1 ring-gray-950/5 dark:bg-white/5 dark:ring-white/10" >
19
20
<div class =" flex gap-x-3" >
25
26
<div class =" flex gap-x-2 items-center justify-between" >
26
27
<div class =" flex gap-x-2 items-center" >
27
28
<div class =" text-sm font-medium text-gray-950 dark:text-white" >
28
- {{ $comment -> user [config (' filament-comments.user_name_attribute' )] } }
29
+ {{ $comment -> user [config (' filament-comments.user_name_attribute' )] ?? " Unknown User " } }
29
30
</div >
30
31
31
32
<div class =" text-xs font-medium text-gray-400 dark:text-gray-500" >
56
57
</div >
57
58
</div >
58
59
@endforeach
59
- </x-filament::grid >
60
+ </div >
60
61
@else
61
62
<div class =" flex-grow flex flex-col items-center justify-center space-y-4" >
62
63
<x-filament::icon
63
64
icon =" {{ config (' filament-comments.icons.empty' ) } }"
64
65
class =" h-12 w-12 text-gray-400 dark:text-gray-500"
65
66
/>
66
-
67
+
67
68
<div class =" text-sm text-gray-400 dark:text-gray-500" >
68
69
{{ __ (' filament-comments::filament-comments.comments.empty' ) } }
69
70
</div >
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ protected function getAssetPackageName(): ?string
74
74
protected function getAssets (): array
75
75
{
76
76
return [
77
- Css:: make ( ' filament-comments-styles ' , __DIR__ . ' /../resources/dist/filament-comments.css ' ),
77
+
78
78
];
79
79
}
80
80
You can’t perform that action at this time.
0 commit comments