fix(l2): Messages - "Read all" an icon, the title squeezed to "Me..." beside it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-10-15 12:53:22 +02:00
co-authored by Claude Opus 5.5
parent b17f97c71f
commit d1fc6e3fdd
+2 -1
View File
@@ -172,7 +172,8 @@ void UITask::buildChats() {
lv_obj_t* body = newScreen("Messages", true);
s_chats_read_all = unreadTotal() > 0;
if (_header) { // a new message last, at the edge, whatever the lists below hold
if (s_chats_read_all) headerButton(_header, LV_SYMBOL_OK " Read all", onMarkAllRead, 0, NULL);
// Icons alone: with "Read all" spelled out the title was squeezed to "Me..."
if (s_chats_read_all) headerButton(_header, LV_SYMBOL_OK, onMarkAllRead, 0, NULL);
stylePrimary(headerButton(_header, LV_SYMBOL_EDIT, onNewChat, 0, NULL)); // the pencil alone: the title fits
}
vlist::attach(body);