Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why verify page show width-full? #72

Open
wuyidebh opened this issue Dec 24, 2024 · 3 comments
Open

why verify page show width-full? #72

wuyidebh opened this issue Dec 24, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@wuyidebh
Copy link

What happened?

I think it should show as a modal, but now show full-width

How to reproduce the bug

I think it should show as a modal, but now show full-width
Uploading dd.png…

Repository

filament-2fa

Package Version

2.0

PHP Version

8.2

Laravel Version

11.31

Which operating systems does with happen with?

Windows

Notes

No response

@wuyidebh wuyidebh added the bug Something isn't working label Dec 24, 2024
@wuyidebh
Copy link
Author

dd

@Baspa
Copy link
Member

Baspa commented Dec 24, 2024

Once again, can you show me your panel configuration? Do you have setup a topNavigation() by any chance? @wuyidebh

@wuyidebh
Copy link
Author

wuyidebh commented Dec 24, 2024

Once again, can you show me your panel configuration? Do you have setup a topNavigation() by any chance? @wuyidebh

namespace App\Providers\Filament;

use App\Filament\Auth\Login;
use App\Filament\Auth\Register;
use App\Filament\Auth\RequestPasswordReset;
use App\Filament\Resources\ProjectResource;
use CharrafiMed\GlobalSearchModal\Customization\Position;
use CharrafiMed\GlobalSearchModal\GlobalSearchModalPlugin;
use Filament\FontProviders\LocalFontProvider;
use Filament\GlobalSearch\Contracts\GlobalSearchProvider;
use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\AuthenticateSession;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Filament\Navigation\NavigationGroup;
use Filament\Pages;
use Filament\Panel;
use Filament\PanelProvider;
use Filament\Support\Colors\Color;
use Filament\Support\Enums\MaxWidth;
use Filament\View\PanelsRenderHook;
use Filament\Widgets;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Illuminate\Cookie\Middleware\EncryptCookies;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Session\Middleware\StartSession;
use Illuminate\Support\Facades\View;
use Illuminate\View\Middleware\ShareErrorsFromSession;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->default()
            ->id('admin')
            ->path('admin')
            ->login(Login::class)
            ->registration(Register::class)
            ->profile()
            ->emailVerification()
            ->passwordReset(RequestPasswordReset::class)
            ->favicon('images/favicon.svg') 
            ->emailVerification()
            ->brandName('Wall')
            ->brandLogoHeight('5rem')
            ->colors([
                'primary' => Color::Amber,
            ])
            ->font(
                'Inter',
                url: asset('css/customfonts.css'),
                provider: LocalFontProvider::class,
            )
            ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
            ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
            ->pages([
                Pages\Dashboard::class,
            ])
            ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
            ->widgets([
                Widgets\AccountWidget::class,
                Widgets\FilamentInfoWidget::class,
            ])
            ->middleware([
                EncryptCookies::class,
                AddQueuedCookiesToResponse::class,
                StartSession::class,
                AuthenticateSession::class,
                ShareErrorsFromSession::class,
                VerifyCsrfToken::class,
                SubstituteBindings::class,
                DisableBladeIconComponents::class,
                DispatchServingFilamentEvent::class,
            ])
            ->authMiddleware([
                Authenticate::class,
            ])
            ->globalSearchKeyBindings(['command+k', 'ctrl+k']) 
            ->plugins([
                GlobalSearchModalPlugin::make()
                    ->closeByEscaping(enabled: true)
                    ->closeByClickingAway(enabled: true)
                    ->closeButton(enabled: false)
                    ->SwappableOnMobile(enabled: false)
                    ->highlightQueryStyles([
                        'background-color' => 'yellow',
                        'font-weight' => 'bold',
                    ])
                    ->searchItemTree(false)

            ]);
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants