From 6f6f2b77d7151bebe5355d1e3574dee6109e9a7d Mon Sep 17 00:00:00 2001 From: Cody Date: Thu, 4 Jun 2020 21:11:24 -0700 Subject: [PATCH] '...' added, Reply Removed --- .../Modules/Admin/UserProfile/Index.razor | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Oqtane.Client/Modules/Admin/UserProfile/Index.razor b/Oqtane.Client/Modules/Admin/UserProfile/Index.razor index b47eb3fe..4579d138 100644 --- a/Oqtane.Client/Modules/Admin/UserProfile/Index.razor +++ b/Oqtane.Client/Modules/Admin/UserProfile/Index.razor @@ -126,7 +126,14 @@ else - @(context.Body.Length > 100 ? context.Body.Substring(0, 100) : context.Body) + + @{ + string input = "---"; + if (context.Body.Contains(input)){ + context.Body = context.Body.Split(input)[0]; + } } + @(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body) + } @@ -149,7 +156,14 @@ else - @(context.Body.Length > 100 ? context.Body.Substring(0, 100) : context.Body) + + @{ + string input = "---"; + if (context.Body.Contains(input)){ + context.Body = context.Body.Split(input)[0]; + } } + @(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body) + }