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 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-14 20:21:13 +02:00
parent 1fcad7776a
commit c86e6c803e
2 changed files with 6 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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);
}