From ae9df103f3629ff5fc7f2dcb0c7192b1b3b78208 Mon Sep 17 00:00:00 2001 From: choco Date: Fri, 19 Dec 2025 15:55:20 +0100 Subject: [PATCH] updated bullet points to wrap to the next line when it reaches the edge of the content area. --- LightlessSync/UI/UpdateNotesUi.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/LightlessSync/UI/UpdateNotesUi.cs b/LightlessSync/UI/UpdateNotesUi.cs index 340253f..e1b3ab3 100644 --- a/LightlessSync/UI/UpdateNotesUi.cs +++ b/LightlessSync/UI/UpdateNotesUi.cs @@ -195,13 +195,15 @@ public class UpdateNotesUi : WindowMediatorSubscriberBase foreach (var item in category.Items) { + ImGui.Bullet(); + ImGui.SameLine(); if (!string.IsNullOrEmpty(item.Role)) { - ImGui.BulletText($"{item.Name} — {item.Role}"); + ImGui.TextWrapped($"{item.Name} — {item.Role}"); } else { - ImGui.BulletText(item.Name); + ImGui.TextWrapped(item.Name); } } @@ -254,7 +256,7 @@ public class UpdateNotesUi : WindowMediatorSubscriberBase ImGui.SetScrollHereY(0); } - ImGui.PushTextWrapPos(); + ImGui.PushTextWrapPos(ImGui.GetCursorPosX() + ImGui.GetContentRegionAvail().X); foreach (var entry in _changelog.Changelog) { @@ -314,7 +316,9 @@ public class UpdateNotesUi : WindowMediatorSubscriberBase foreach (var item in version.Items) { - ImGui.BulletText(item); + ImGui.Bullet(); + ImGui.SameLine(); + ImGui.TextWrapped(item); } ImGuiHelpers.ScaledDummy(5);