Long email address in tooltip breaking at the @

Hi All, have a column of email addresses that can get quite long so I stick a limit and add a tooltip for those cells where the limit is breached. I have a particular address that overflows the tooltip exactly at the @ symbol. If I change the @ to a - in the database the tooltip works fine
IMG_1237.jpg
IMG_1236.jpg
Solution
a workaround

->extraAttributes(fn (YorModel $record): array => [
    'x-tooltip' => "{content: '<div class=\"break-words\">{$record->email}</div>', allowHTML:true}"
])
Was this page helpful?