F
Filament4d ago
Xavi

CSS for one resource

It is possible to apply styles to a single table of a specific resource. I want to hide a section of the table using CSS, but only for a specific resource. Thanks!
Solution:
It depends on what you want to hide because you are only hiding the element, not removing it from the page. You can add this to the ListPage ```php...
Jump to solution
2 Replies
Solution
LeandroFerreira
It depends on what you want to hide because you are only hiding the element, not removing it from the page. You can add this to the ListPage
protected array $extraBodyAttributes = [
'class' => 'my-custom-page',
];
protected array $extraBodyAttributes = [
'class' => 'my-custom-page',
];
Then, you can change the css using this class
.my-custom-page .fi-pagination-overview {
@apply hidden;
}
.my-custom-page .fi-pagination-overview {
@apply hidden;
}
Xavi
XaviOP4d ago
It's exactly what I was looking for, thank you very much!

Did you find this page helpful?