gobrightspot / nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.
MIT License
168 stars 50 forks source link

Problem when using visibleActionsLimit = 0 #65

Open vesper8 opened 2 years ago

vesper8 commented 2 years ago

In my case I have a resource with many detached actions, over 15 of them, so it doesn't make sense to show 1 or 2 and then show the rest in the menu, instead I just want to show all of them in the drop down menu. So when I set 'visibleActionsLimit' => 0, then it works, but because the menu popover shows on the right, it ends up going off-screen.

Screen Shot 2022-02-28 at 12 19 06 AM

Would it be possible to customize this behaviour so that it would open to the left instead of the the right when the limit is set to 0 ?

Or ideally this would be configurable, but if it would at least automatically default to the left when set to 0 then that would be great.

Thank you for this great package!

vesper8 commented 2 years ago

The solution is to make the bottom-end here https://github.com/gobrightspot/nova-detached-actions/blob/dc4975cb03c761f8fd9ba7d98e75acc41306af9b/resources/js/components/InvisibleActions.vue#L2

Customizable. In my case I would like it to be bottom-start