mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix(Installer): choose first line of description
This commit is contained in:
parent
2633f5ace5
commit
6b40ff38ab
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue