diff --git a/app/Livewire/UserNotifications.php b/app/Livewire/UserNotifications.php index 38fcea49..dafd74e1 100644 --- a/app/Livewire/UserNotifications.php +++ b/app/Livewire/UserNotifications.php @@ -6,8 +6,8 @@ use App\Mail\UserNotification; use App\Models\User; use Filament\Actions\Concerns\InteractsWithActions; use Filament\Actions\Contracts\HasActions; -use Filament\Forms\Components\MarkdownEditor; use Filament\Forms\Components\Select; +use Filament\Forms\Components\Textarea; use Filament\Forms\Components\TextInput; use Filament\Forms\Components\Toggle; use Filament\Notifications\Notification; @@ -44,8 +44,7 @@ class UserNotifications extends Component implements HasActions, HasSchemas, Has Toggle::make('notify_by_email')->label('Send also as E-Mail'), TextInput::make('subject') ->required(), - MarkdownEditor::make('message') - ->required(), + Textarea::make('message')->rows(4), ]) ->statePath('data'); } @@ -62,8 +61,8 @@ class UserNotifications extends Component implements HasActions, HasSchemas, Has } Notification::make() ->title($data['subject']) - ->icon('phosphor-envelope-duotone') - ->body($data['message']) + ->icon('phosphor-user-duotone') + ->body('from: '.auth()->user()->name.'
'.$data['message']) ->sendToDatabase($recipient); Notification::make() diff --git a/resources/css/filament/admin/theme.css b/resources/css/filament/admin/theme.css index cc80a279..3de40e69 100644 --- a/resources/css/filament/admin/theme.css +++ b/resources/css/filament/admin/theme.css @@ -8,6 +8,17 @@ @source '../../../../vendor/guava/filament-modal-relation-managers/resources/**/*'; @source '../../../../vendor/jaocero/radio-deck/resources/views'; + +/* Reduce gap between widgets and content */ +.fi-page-content { + @apply gap-y-5; + /* Default is usually gap-6 or gap-8 */ +} + +.fi-page-header-main-ctn { + @apply pt-5 +} + /* hide reset link in filters */ .fi-ta-filters-heading, button[wire\:click="resetTableFiltersForm"] {