F
Filamentβ€’15mo ago
pocket.racer

How to increase Register Page White box width?

I tried the following: - subclass Register and add protected ?string $maxContentWidth = 'full'; Then use my Register class in the Panel registration - override the register blade view and do (added a w-full class)
<x-filament-panels::page.simple class="w-full">
<x-filament-panels::page.simple class="w-full">
But the register page white box width is still the same
7 Replies
Benjamin
Benjaminβ€’15mo ago
I'm trying to do the same, did you find out a solution ?
Patrick Boivin
Patrick Boivinβ€’15mo ago
I think the simplest options is adding some custom CSS on .fi-simple-main
Benjamin
Benjaminβ€’15mo ago
I'm doing that until I found a better solution yep πŸ™‚
Patrick Boivin
Patrick Boivinβ€’15mo ago
You can also override just this Blade view from the core: vendor/filament/filament/resources/views/components/layout/simple.blade.php But personally, I think the CSS is the better option πŸ€“
Benjamin
Benjaminβ€’15mo ago
Yes! Better than overwritting
pocket.racer
pocket.racerOPβ€’15mo ago
I override the view in the end i tried to add some extra classes but it didn't work i think
Esi
Esiβ€’15mo ago
You can try with scss using the @apply to add classes like this:
.fi-simple-main {
@apply relative sm:max-w-sm #{!important};
max-width: 416px !important;
}
.fi-simple-main {
@apply relative sm:max-w-sm #{!important};
max-width: 416px !important;
}
If you have overridden the file make sure the path is correct, for example for login it should be resources/views/vendor/filament-panels/pages/auth/login.blade.php
Want results from more Discord servers?
Add your server