fix(Installer): choose first line of description

This commit is contained in:
goaaats 2021-10-08 22:00:34 +02:00
parent 2633f5ace5
commit 6b40ff38ab
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -1127,10 +1127,11 @@ namespace Dalamud.Interface.Internal.Windows
else if (!string.IsNullOrWhiteSpace(manifest.Description))
{
const int punchlineLen = 200;
var firstLine = manifest.Description.Split()[0];
ImGui.TextWrapped(manifest.Description.Length < punchlineLen
? manifest.Description
: manifest.Description[..punchlineLen]);
ImGui.TextWrapped(firstLine.Length < punchlineLen
? firstLine
: firstLine[..punchlineLen]);
}
startCursor.Y += sectionSize;