UX Pass 5 (#3128)
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
parent
dbc4f35107
commit
c93af3e56f
126 changed files with 1989 additions and 2877 deletions
|
|
@ -10,6 +10,7 @@ namespace API.Services;
|
|||
|
||||
public static class ReviewService
|
||||
{
|
||||
private const int BodyTextLimit = 175;
|
||||
public static IEnumerable<UserReviewDto> SelectSpectrumOfReviews(IList<UserReviewDto> reviews)
|
||||
{
|
||||
IList<UserReviewDto> externalReviews;
|
||||
|
|
@ -76,7 +77,7 @@ public static class ReviewService
|
|||
plainText = Regex.Replace(plainText, @"__", string.Empty);
|
||||
|
||||
// Take the first 100 characters
|
||||
plainText = plainText.Length > 100 ? plainText.Substring(0, 100) : plainText;
|
||||
plainText = plainText.Length > 100 ? plainText.Substring(0, BodyTextLimit) : plainText;
|
||||
|
||||
return plainText + "…";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue