From 42cf66cbd7b6cd9d62251fb3e984bf64aee549f6 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 6 Nov 2025 20:04:23 +1000 Subject: [PATCH] FullscreenUI: Fix achievement points placement with short description --- src/core/fullscreenui_widgets.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/fullscreenui_widgets.cpp b/src/core/fullscreenui_widgets.cpp index 003c649fb..16d31c82d 100644 --- a/src/core/fullscreenui_widgets.cpp +++ b/src/core/fullscreenui_widgets.cpp @@ -4792,9 +4792,10 @@ void FullscreenUI::DrawNotifications(ImVec2& position, float spacing) const ImVec2 text_size = font->CalcTextSizeA(text_font_size, text_font_weight, max_text_width, max_text_width, IMSTR_START_END(notif.text)); - float box_width = std::max((horizontal_padding * 2.0f) + badge_size + horizontal_spacing + - ImCeil(std::max(title_size.x, text_size.x)), - min_width); + float box_width = std::max( + (horizontal_padding * 2.0f) + badge_size + horizontal_spacing + + ImCeil(std::max(title_size.x, text_size.x) + (notif.note.empty() ? 0.0f : (horizontal_spacing + note_size.x))), + min_width); const float box_height = std::max((vertical_padding * 2.0f) + ImCeil(title_size.y) + vertical_spacing + ImCeil(text_size.y), min_height);