#9866 fixed display of notifications with very long text strings

This commit is contained in:
Jorge Rincon 2023-06-22 15:30:55 +02:00
parent a0f1dacfae
commit 42a8685586
1 changed files with 5 additions and 0 deletions

View File

@ -1096,6 +1096,11 @@ function notifications_print_dropdown_element($message_info)
$message_info['subject'] = io_safe_input($img);
}
if (strlen($body_preview) >= 170) {
$body_preview = substr($body_preview, 0, 150);
$body_preview .= __('. Read More...');
}
return sprintf(
"<a
class='notification-item'