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

[BUG] btnfilter width #183

Open
scramatte opened this issue Jul 30, 2024 · 0 comments
Open

[BUG] btnfilter width #183

scramatte opened this issue Jul 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@scramatte
Copy link

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
@scramatte scramatte added the bug Something isn't working label Jul 30, 2024
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

1 participant