From 97066b7442cd5a2d6e1e0beb8493166794512e2d Mon Sep 17 00:00:00 2001 From: Soreepeong Date: Sun, 25 Feb 2024 05:59:38 +0900 Subject: [PATCH] Fix layout --- .../Interface/Internal/Notifications/ActiveNotification.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dalamud/Interface/Internal/Notifications/ActiveNotification.cs b/Dalamud/Interface/Internal/Notifications/ActiveNotification.cs index 7feb989c3..178cdb041 100644 --- a/Dalamud/Interface/Internal/Notifications/ActiveNotification.cs +++ b/Dalamud/Interface/Internal/Notifications/ActiveNotification.cs @@ -227,7 +227,9 @@ internal sealed class ActiveNotification : IActiveNotification, IDisposable var unboundedWidth = NotificationConstants.ScaledWindowPadding * 3; unboundedWidth += NotificationConstants.ScaledIconSize; unboundedWidth += Math.Max( - ImGui.CalcTextSize(this.Title ?? this.DefaultTitle ?? string.Empty).X, + Math.Max( + ImGui.CalcTextSize(this.Title ?? this.DefaultTitle ?? string.Empty).X, + ImGui.CalcTextSize(this.InitiatorPlugin?.Name ?? NotificationConstants.DefaultInitiator).X), ImGui.CalcTextSize(this.Content).X); var width = Math.Min(maxWidth, unboundedWidth);