diff options
| author | 依云 <lilydjwg@gmail.com> | 2026-01-28 04:51:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-27 12:51:34 -0800 |
| commit | 75a21fb0dfde397bf0dd46d37867bf7fb732c477 (patch) | |
| tree | 3a911628e3f66443008baf4b296b82a92e60ee64 /crates/atuin-client | |
| parent | feat: support setting a custom data dir in config (#3105) (diff) | |
| download | atuin-75a21fb0dfde397bf0dd46d37867bf7fb732c477.zip | |
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.
<!-- Thank you for making a PR! Bug fixes are always welcome, but if
you're adding a new feature or changing an existing one, we'd really
appreciate if you open an issue, post on the forum, or drop in on
Discord -->
## 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
Diffstat (limited to 'crates/atuin-client')
| -rw-r--r-- | crates/atuin-client/src/settings.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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, |
