mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +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))
|
else if (!string.IsNullOrWhiteSpace(manifest.Description))
|
||||||
{
|
{
|
||||||
const int punchlineLen = 200;
|
const int punchlineLen = 200;
|
||||||
|
var firstLine = manifest.Description.Split()[0];
|
||||||
|
|
||||||
ImGui.TextWrapped(manifest.Description.Length < punchlineLen
|
ImGui.TextWrapped(firstLine.Length < punchlineLen
|
||||||
? manifest.Description
|
? firstLine
|
||||||
: manifest.Description[..punchlineLen]);
|
: firstLine[..punchlineLen]);
|
||||||
}
|
}
|
||||||
|
|
||||||
startCursor.Y += sectionSize;
|
startCursor.Y += sectionSize;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue