fix: clear arrow background in FullscreenMsgView to prevent text overlap

Text lines fill the full display width, causing the last chars to bleed
into the scroll arrow area. Draw a DARK fillRect behind each arrow before
rendering it, so the arrow appears on a clean black background without
truncating the text width.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-17 23:06:04 +02:00
co-authored by Claude Sonnet 4.6
parent 9650ba685b
commit 2911efc92f
@@ -63,10 +63,16 @@ struct FullscreenMsgView {
display.print(lines[scroll + i]); display.print(lines[scroll + i]);
} }
if (scroll > 0) { if (scroll > 0) {
display.setColor(DisplayDriver::DARK);
display.fillRect(display.width() - 6, FS_START_Y, 6, FS_LINE_H);
display.setColor(DisplayDriver::LIGHT);
display.setCursor(display.width() - 6, FS_START_Y); display.setCursor(display.width() - 6, FS_START_Y);
display.print("^"); display.print("^");
} }
if (scroll < max_scroll) { if (scroll < max_scroll) {
display.setColor(DisplayDriver::DARK);
display.fillRect(display.width() - 6, FS_START_Y + (visible - 1) * lineH, 6, lineH);
display.setColor(DisplayDriver::LIGHT);
display.setCursor(display.width() - 6, FS_START_Y + (visible - 1) * lineH); display.setCursor(display.width() - 6, FS_START_Y + (visible - 1) * lineH);
display.print("v"); display.print("v");
} }