mirror of
https://github.com/forkless/NotAlterra.git
synced 2026-08-22 02:38:38 +02:00
Widen playtime column to fit zero-padded format
This commit is contained in:
+2
-2
@@ -418,7 +418,7 @@ fn action_recover_bak<B: Backend>(terminal: &mut Terminal<B>, app: &mut App) ->
|
||||
// Build multi-column display with slot grouping.
|
||||
// First entry in each slot gets a numbered label matching the savegame slot.
|
||||
let mut labelled: std::collections::HashSet<String> = std::collections::HashSet::new();
|
||||
let header = format!(" {:<8} {:<16} {:<14} {:<6} {:>6} {}",
|
||||
let header = format!(" {:<8} {:<16} {:<14} {:<8} {:>6} {}",
|
||||
"Slot", "Description", "Game Type", "Playtime", "Size", "Date");
|
||||
let mut items: Vec<String> = vec![header, String::new()];
|
||||
items.extend(bak_summaries
|
||||
@@ -437,7 +437,7 @@ fn action_recover_bak<B: Backend>(terminal: &mut Terminal<B>, app: &mut App) ->
|
||||
let save_type = if s.is_online { "Multiplayer" } else { "Single Player" };
|
||||
let playtime = format_playtime(s.playtime_seconds);
|
||||
format!(
|
||||
" {:<8} {:<16} {:<14} {:<6} {:>6} {}",
|
||||
" {:<8} {:<16} {:<14} {:<8} {:>6} {}",
|
||||
label_col,
|
||||
name_col,
|
||||
save_type,
|
||||
|
||||
Reference in New Issue
Block a user