fix: use readonly and readwrite footer labels

This commit is contained in:
Valdemar Lorenzen
2026-10-20 17:02:42 +02:00
parent d3bb1e0e45
commit d0c75fb723
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -1637,7 +1637,7 @@ mod tests {
assert_eq!(buffer[(x, 5)].fg, Color::Black);
assert_eq!(buffer[(x - 1, 5)].bg, Color::Cyan);
assert_eq!(buffer[(x - 2, 5)].bg, Color::Reset);
let end = x + access.map_or("", AccessMode::label).len() as u16;
let end = x + access.map_or("", AccessMode::label).len() as u16 - 1;
assert_eq!(buffer[(end, 5)].bg, Color::Cyan);
assert_eq!(buffer[(end + 1, 5)].bg, Color::Reset);
}
+1 -1
View File
@@ -85,7 +85,7 @@ Navigation:
Full-width bars show dbdash above and mode/database below.
Saved PostgreSQL connections show database · user@host:port beside the mode,
regardless of custom sidebar names; passwords are never included.
The footer shows provider, a flat lowercase access badge with one-column outer margins, then position.
The footer shows provider, a readonly/readwrite badge with one-column outer margins, then position.
Only badges have colored backgrounds; the remaining bar area uses terminal defaults.
Focused inputs show one-based line:column (Unicode characters, not screen cells).
The position badge shows N/A outside focused inputs, including in info/help popups.