F
Filament16mo ago
Rasasak

notification position in v3

How can I move notification from corner to center ... like in v2 I cannot find it
No description
5 Replies
cheesegrits
cheesegrits16mo ago
Not 100% sure, but I think you can put ...
Notifications::horizontalAlignment('center');
Notifications::verticalAlignment('top');
Notifications::horizontalAlignment('center');
Notifications::verticalAlignment('top');
... in a service provider.
sumardi
sumardi16mo ago
use Filament\Notifications\Livewire\Notifications;
use Filament\Support\Enums\Alignment;
use Filament\Support\Enums\VerticalAlignment;

Notifications::alignment(Alignment::Center);
Notifications::verticalAlignment(VerticalAlignment::Start);
use Filament\Notifications\Livewire\Notifications;
use Filament\Support\Enums\Alignment;
use Filament\Support\Enums\VerticalAlignment;

Notifications::alignment(Alignment::Center);
Notifications::verticalAlignment(VerticalAlignment::Start);
Rasasak
RasasakOP16mo ago
awesome thanks !
okawiadnyana
okawiadnyana10mo ago
Hi..i already write down notification alignment in my custom service provider and register it in config/app file…but its not work. It is correct to put notification aligment with custom service provider..or i should write in default service provider?
Rasasak
RasasakOP10mo ago
I wrote it to filament provider
Want results from more Discord servers?
Add your server