F
Filamentβ€’16mo ago
Lucas

Change tooltip location / stop infolist entry from using entire column

I have the following infolist entry inside a section:
Infolists\Components\TextEntry::make('created_at')->since()->tooltip(fn (Project $record): string => $record->created_at)->label('Project created at')
Infolists\Components\TextEntry::make('created_at')->since()->tooltip(fn (Project $record): string => $record->created_at)->label('Project created at')
This works, but the tooltip is centered on the entire column instead of just the content, which results in quite a weird location for the tooltip imo. The same thing happens for entries with a URL (the entire column is clickable). Is this behaviour intentional? And if so, is there an easy way to modify the tooltip location? Thanks!
7 Replies
Babul
Babulβ€’14mo ago
I just noticed the same behavior in Filament 3.0.67. The tooltip is off so much it doesn't feel like its part of the text its providing insight on πŸ€”
DrByte
DrByteβ€’14mo ago
I think releases .65/.66/.67 were related to centered content ... does rolling back to .64 solve your situation?
Babul
Babulβ€’14mo ago
Thanks so much for the insight! I will test those versions tonight and report back.
DrByte
DrByteβ€’14mo ago
to be fair, I don't think it was specific to tooltips ... but no harm in checking whether there's a bug been introduced by testing a rollback
Babul
Babulβ€’14mo ago
Absolutely. I rolled back to 3.0.64 and got the same possition for tooltip πŸ€”
No description
Babul
Babulβ€’14mo ago
Here is 3.0.67
No description
Lucas
LucasOPβ€’14mo ago
Yeah I don't think this was ever fixed, iirc it's because they re-used some code from the table components where it makes sense for the tooltip to be centered on the entire column
Want results from more Discord servers?
Add your server