fix(tui): modal header background color bleed

Replace writeLine with write for the header row — writeLine appends a
newline which causes the active background color to flood the remainder
of the line and bleed into subsequent rows.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Chris Hendrickson 2026-04-25 14:20:54 -04:00
parent 8535254f48
commit 5c3d00e2a4

View file

@ -1402,11 +1402,11 @@ class TuiCommand extends DewCommand {
// Header bar
final headerText = ' ✏ Edit ${es.ticket.id} ';
final paddedHeader = headerText.padRight(innerW);
at(modalTop + 1, modalLeft + 1, () {
console.setForegroundColor(ConsoleColor.black);
console.setBackgroundColor(accentColor);
console.writeLine(paddedHeader.substring(0, min(paddedHeader.length, innerW)));
final hText = headerText.padRight(innerW).substring(0, innerW);
console.write(hText);
console.resetColorAttributes();
});