FilamentF
Filament14mo ago
Cushty

Widgets columns not taking effect

I have the column set on the new dashboard page to 3, but nothing I do makes the 3 widgets stay on the same line.

<?php

namespace App\Filament\Pages;

class Dashboard extends \Filament\Pages\Dashboard
{
    
    public function getColumns(): int | string | array
    {
        return [
            'default' => 3,
            'xl' => 3,
        ];
    }


}


<?php

namespace App\Filament\Widgets;

use Filament\Widgets\Widget;

class StripeDirectorySubscription extends Widget
{

    protected int | string | array $columnSpan = 1;
    protected static string $view = 'filament.widgets.stripe-directory-subscription';
}


Hope you can help.
Was this page helpful?