EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Improve action display

Open fabienlem opened this issue 3 years ago • 0 comments

Short description of what this feature will allow to do:

Today, actions are displayed in a dropdown menu, unless we configure it to be displayed inline.

I suggest to introduce an hybrid mode:

  • actions displayed in a drop down menu for medium or large screen resolutions
  • actions displayed inline for small screen resolutions

As you can see on the screenshots below, drop down menu does not make sense for small resolutions, as there is a lot of available space to display them. Moreover, it saves one click and accessibility is better on touch screens.

Capture

Capture2

Dessin sans titre

Example of how to use this feature

// MyCrudController.php

    public function configureCrud(Crud $crud): Crud
    {
        return $crud
            ->showResponsiveEntityActions(); // hard to find a good name for this method
    }

It's really minor but it would be a nice improvement.

Thank you.

fabienlem avatar Jun 16 '22 11:06 fabienlem