From c86e6c803e46f668ec250940866e06be63a7fb9f Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Thu, 14 May 2026 20:21:13 +0200 Subject: [PATCH] fix: reverse fullscreen message nav order and remove channel # prefix - Swap left/right navigation in fullscreen view: left=newer, right=older - Update arrow indicators to match new direction - Remove # prefix from channel name in message and compose view titles Co-Authored-By: Claude Sonnet 4.6 --- examples/companion_radio/ui-new/FullscreenMsgView.h | 8 ++++---- examples/companion_radio/ui-new/UITask.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/companion_radio/ui-new/FullscreenMsgView.h b/examples/companion_radio/ui-new/FullscreenMsgView.h index 17e8e880..d66d759e 100644 --- a/examples/companion_radio/ui-new/FullscreenMsgView.h +++ b/examples/companion_radio/ui-new/FullscreenMsgView.h @@ -65,11 +65,11 @@ struct FullscreenMsgView { display.setCursor(display.width() - 6, FS_START_Y + (FS_VISIBLE - 1) * FS_LINE_H); display.print("v"); } - if (has_prev) { + if (has_next) { display.setCursor(0, 56); display.print("<"); } - if (has_next) { + if (has_prev) { display.setCursor(display.width() - 6, 56); display.print(">"); } @@ -79,8 +79,8 @@ struct FullscreenMsgView { Result handleInput(char c) { if (c == KEY_UP) { if (scroll > 0) scroll--; return NONE; } if (c == KEY_DOWN) { scroll++; return NONE; } - if (c == KEY_LEFT) return PREV; - if (c == KEY_RIGHT) return NEXT; + if (c == KEY_LEFT) return NEXT; + if (c == KEY_RIGHT) return PREV; if (c == KEY_ENTER || c == KEY_CANCEL) return CLOSE; return NONE; } diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index edabeaf5..372c20fd 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -1203,7 +1203,7 @@ public: ChannelDetails ch; the_mesh.getChannel(_sel_channel_idx, ch); char title[24]; - snprintf(title, sizeof(title), "#%.21s", ch.name); + snprintf(title, sizeof(title), "%.23s", ch.name); display.drawTextCentered(display.width()/2, 0, title); display.fillRect(0, 9, display.width(), 1); @@ -1289,7 +1289,7 @@ public: if (_sending_to_channel) { ChannelDetails ch; the_mesh.getChannel(_sel_channel_idx, ch); - snprintf(title, sizeof(title), "#%.21s", ch.name); + snprintf(title, sizeof(title), "%.23s", ch.name); } else { snprintf(title, sizeof(title), "TO:%.14s", _sel_contact.name); }