Skip to content

[BUG] btnfilter width  #183

@scramatte

Description

@scramatte

Describe the bug
btnFilter is too small , the list is not displayed correctly

To Reproduce

 $series = Arr::map(['answered','no answer', 'busy'], function ($value) {
            return [
                'label' => $value,
                'filter' => [
                    'key' => 'disposition',
                    'value' => strtoupper($value),
                ]
            ];
        });

        return [
            PieChart::make()
                ->title('numbers')
                ->model('\App\Models\Asterisk\Cdr')
                ->col_xaxis('calldate')
                ->series($series)
                ->options([
                    'showPercentage' => true,
                    'btnFilter' => true,
                    'btnFilterDefault' => '30',
                    'btnFilterList' => [
                       '30' => '30 Days',
                       '60' => '60 Days',
                       '90' => '90 Days',
                    ],
            ])->width('1/3'),

Expected behavior
btnFilter width should adapts to filter items max length

Screenshots
imagen

Dependencies Version (please complete the following information):

  • Laravel Version: 10
  • Nova Version: 4.32
  • Nova-ChartJS Version: 0.4.3

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions