add repo info dialog
This commit is contained in:
@@ -528,7 +528,7 @@ pub(super) fn share_menu_row(
|
||||
|
||||
/// `[head chars]...[tail chars]` middle truncation; the value is left alone
|
||||
/// when it is too short for the ellipsis to save space.
|
||||
fn middle_truncate(value: &str, head: usize, tail: usize) -> String {
|
||||
pub(super) fn middle_truncate(value: &str, head: usize, tail: usize) -> String {
|
||||
let len = value.chars().count();
|
||||
if len <= head + tail + 3 {
|
||||
return value.to_string();
|
||||
|
||||
Reference in New Issue
Block a user