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:
parent
8535254f48
commit
5c3d00e2a4
1 changed files with 2 additions and 2 deletions
|
|
@ -1402,11 +1402,11 @@ class TuiCommand extends DewCommand {
|
||||||
|
|
||||||
// Header bar
|
// Header bar
|
||||||
final headerText = ' ✏ Edit ${es.ticket.id} ';
|
final headerText = ' ✏ Edit ${es.ticket.id} ';
|
||||||
final paddedHeader = headerText.padRight(innerW);
|
|
||||||
at(modalTop + 1, modalLeft + 1, () {
|
at(modalTop + 1, modalLeft + 1, () {
|
||||||
console.setForegroundColor(ConsoleColor.black);
|
console.setForegroundColor(ConsoleColor.black);
|
||||||
console.setBackgroundColor(accentColor);
|
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();
|
console.resetColorAttributes();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue