starlette-admin
starlette-admin copied to clipboard
Bug: Row Actions Dropdown doesn't display properly
Describe the bug
I have a bunch of row actions and the display bearks for the item in the end of the table.
Environment (please complete the following information):
- Starlette-Admin version: 0.12.0
- ORM/ODMs: SQLAlchemy
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