diff --git a/src/ui/material/draw_helpers.h b/src/ui/material/draw_helpers.h index b65f0c4..eb37dde 100644 --- a/src/ui/material/draw_helpers.h +++ b/src/ui/material/draw_helpers.h @@ -1676,7 +1676,11 @@ inline void DialogWarningHeader(const char* warningLabel, const ImVec4& col = Wa ImGui::SameLine(); // Vertically center the label with the taller warning glyph (stays within the icon's row height). if (iconH > textH) ImGui::SetCursorPosY(rowTop + (iconH - textH) * 0.5f); + // Wrap so a long warning flows to a second line instead of clipping at the card edge; short + // warnings (which fit) are unaffected. + ImGui::PushTextWrapPos(0.0f); ImGui::TextColored(col, "%s", warningLabel); + ImGui::PopTextWrapPos(); } // 50/50 Cancel / confirm footer for overlay dialogs. Sets `outCancel` /