Fixed many issues with text paragraphs in GUI

This commit is contained in:
Yousef Khadadeh 2026-04-25 19:01:19 +03:00
parent 2d039dc47b
commit eb490906a0
13 changed files with 132 additions and 37 deletions

View file

@ -1039,7 +1039,8 @@ void Toolbar::chat_box() {
gui.new_id(id++, [&] {
gui.element<TextParagraph>("text", TextParagraph::Data{
.text = build_paragraph_from_chat_message(chatMessage, 1.0f),
.width = CHATBOX_WIDTH
.maxGrowX = CHATBOX_WIDTH,
.ellipsis = false
});
});
}
@ -1088,7 +1089,8 @@ void Toolbar::chat_box() {
}) {
gui.element<TextParagraph>("message", TextParagraph::Data{
.text = build_paragraph_from_chat_message(chatMessage, a),
.width = CHATBOX_WIDTH
.maxGrowX = CHATBOX_WIDTH,
.ellipsis = false
});
}
});