F
Filamentβ€’15mo ago
Hotcat

Move filters to the top

Hi guys πŸ‘‹ Is it possible to move the filters icon to the same line with the table heading?
Solution:
Solved in this way: ```php return $table // ->heading(__('admin.widgets.top_sales'))...
Jump to solution
4 Replies
Patrick Boivin
Patrick Boivinβ€’15mo ago
Maybe easier to move the heading down instead with CSS (and adjust padding + borders accordingly)
Hotcat
HotcatOPβ€’15mo ago
Good point πŸ‘ I just thought it can be done programmatically.
Solution
Hotcat
Hotcatβ€’15mo ago
Solved in this way:
return $table
// ->heading(__('admin.widgets.top_sales'))
->header(new HtmlString(
'<h3 class="fi-ta-header-heading text-base font-semibold leading-6 -mb-[29px] translate-y-4 sm:pl-6 pl-3">' .
__('admin.widgets.top_sales') .
'</h3>'
))
return $table
// ->heading(__('admin.widgets.top_sales'))
->header(new HtmlString(
'<h3 class="fi-ta-header-heading text-base font-semibold leading-6 -mb-[29px] translate-y-4 sm:pl-6 pl-3">' .
__('admin.widgets.top_sales') .
'</h3>'
))
Patrick Boivin
Patrick Boivinβ€’15mo ago
Nice
Want results from more Discord servers?
Add your server