From 75a21fb0dfde397bf0dd46d37867bf7fb732c477 Mon Sep 17 00:00:00 2001 From: 依云 Date: Wed, 28 Jan 2026 04:51:34 +0800 Subject: fix(ui): align cursor when expand column is in the middle (#3103) Also change the trailing space of each column to be drawn in `render_row` instead so that each column is separated by a space no matter how they are ordered. ## Checks - [x] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [x] I have checked that there are no existing pull requests for the same thing --- crates/atuin-client/src/settings.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/atuin-client/src/settings.rs') diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs index f7750914..466bc8f1 100644 --- a/crates/atuin-client/src/settings.rs +++ b/crates/atuin-client/src/settings.rs @@ -481,8 +481,8 @@ impl UiColumnType { /// The Command column returns 0 as it expands to fill remaining space. pub fn default_width(&self) -> u16 { match self { - UiColumnType::Duration => 5, - UiColumnType::Time => 9, // "459ms ago" with padding + UiColumnType::Duration => 5, // "814ms" + UiColumnType::Time => 9, // "459ms ago" UiColumnType::Datetime => 16, // "2025-01-22 14:35" UiColumnType::Directory => 20, UiColumnType::Host => 15, -- cgit v1.3.1