Skip to content

Commit

Permalink
Fix divider
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander committed May 20, 2024
1 parent 87a1c34 commit 1370a83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/pages/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl HelpPage {
Line::from(format!(" {} - {}", APP_NAME, APP_DESCRIPTION)),
Line::from(format!(" Version: {}", APP_VERSION)),
Line::from(format!(" {}", APP_HOMEPAGE).fg(LINK_TEXT_COLOR)),
Line::from("-".repeat(w).fg(DIVIDER_COLOR)),
Line::from("─".repeat(w).fg(DIVIDER_COLOR)),
];
let app_detail = with_empty_lines(app_details).into_iter();

Expand Down Expand Up @@ -141,7 +141,7 @@ mod tests {
"β”‚ β”‚",
"β”‚ https://github.com/lusingander/stu β”‚",
"β”‚ β”‚",
"β”‚ ------------------------------------------------------------------ β”‚",
"β”‚ ────────────────────────────────────────────────────────────────── β”‚",
"β”‚ β”‚",
"β”‚ <key1>: action1, <key2>: action2, <key3>: action3 β”‚",
"β”‚ β”‚",
Expand Down
6 changes: 3 additions & 3 deletions src/pages/object_detail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ fn build_file_versions(versions: &[FileVersion], width: u16) -> List {
" Size: ".add_modifier(Modifier::BOLD),
Span::raw(format_size_byte(v.size_byte)),
]),
Line::from("-".repeat(width as usize).fg(DIVIDER_COLOR)),
Line::from("─".repeat(width as usize).fg(DIVIDER_COLOR)),
];
ListItem::new(content)
})
Expand Down Expand Up @@ -561,11 +561,11 @@ mod tests {
"β”‚ file3 β”‚β”‚ Version ID: 60f36bc2-0f3β”‚",
"β”‚ β”‚β”‚ Last Modified: 2024-01-02 1β”‚",
"β”‚ β”‚β”‚ Size: 1.01 KiB β”‚",
"β”‚ β”‚β”‚----------------------------β”‚",
"β”‚ ││────────────────────────────│",
"β”‚ β”‚β”‚ Version ID: 1c5d3bcc-2bbβ”‚",
"β”‚ β”‚β”‚ Last Modified: 2024-01-01 2β”‚",
"β”‚ β”‚β”‚ Size: 1 KiB β”‚",
"β”‚ β”‚β”‚----------------------------β”‚",
"β”‚ ││────────────────────────────│",
"β”‚ β”‚β”‚ β”‚",
"β”‚ β”‚β”‚ β”‚",
"β”‚ β”‚β”‚ β”‚",
Expand Down

0 comments on commit 1370a83

Please sign in to comment.