This commit is contained in:
Loretta 2024-08-20 15:20:25 +02:00
parent f9feff0bf5
commit 04f44fab68
1 changed files with 9 additions and 7 deletions

View File

@ -113,7 +113,9 @@
if (!IsMessageTextVisible)
{
var textString = System.Text.RegularExpressions.Regex.Replace(((EmailMessage)context.DataItem).Text!, "<(.|\n)*?>", string.Empty);
<div style="padding-top: 3px; color: darkgray">@textString</div>
if (textString.Length > 80) textString = textString[..80] + "...";
<div style="color: darkgray; word-break: normal; white-space: normal; padding: 3px 5px 0 0; margin: 0 auto;">@textString</div>
}
}
</CellDisplayTemplate>