starlette-admin icon indicating copy to clipboard operation
starlette-admin copied to clipboard

Bug: Row Actions Dropdown doesn't display properly

Open hasansezertasan opened this issue 2 years ago • 1 comments

Describe the bug I have a bunch of row actions and the display bearks for the item in the end of the table. image

Environment (please complete the following information):

  • Starlette-Admin version: 0.12.0
  • ORM/ODMs: SQLAlchemy

hasansezertasan avatar Nov 06 '23 11:11 hasansezertasan

Not a bug - https://github.com/tabler/tabler/issues/1343

But, the problem is that responsive_table=False for BaseModelView doesn't work. A naive workaround is to set table options directly:

datatables_options = {"dom": "r<'table't><'card-footer d-flex align-items-center'<'m-0'i><'m-0 ms-auto'p>>"}

It can be added to a mixin or base class, and used in all views.

Btw, dom option is deprecated - https://datatables.net/reference/option/dom

evgenybf avatar Sep 29 '24 19:09 evgenybf