mirror of
https://github.com/ClementTsang/bottom
synced 2025-02-16 21:28:26 +00:00
bug: further shrink battery time-to text (#960)
This commit is contained in:
parent
33afeb68c3
commit
9303c1b52f
1 changed files with 5 additions and 4 deletions
|
@ -152,7 +152,7 @@ impl Painter {
|
|||
Row::new(vec!["Time to empty", &s]).style(style)
|
||||
} else {
|
||||
s = short_time(*secs);
|
||||
Row::new(vec!["To empty", &s]).style(style)
|
||||
Row::new(vec!["Empty", &s]).style(style)
|
||||
}
|
||||
}
|
||||
BatteryDuration::ToFull(secs) => {
|
||||
|
@ -161,14 +161,15 @@ impl Painter {
|
|||
Row::new(vec!["Time to full", &s]).style(style)
|
||||
} else {
|
||||
s = short_time(*secs);
|
||||
Row::new(vec!["To full", &s]).style(style)
|
||||
Row::new(vec!["Full", &s]).style(style)
|
||||
}
|
||||
}
|
||||
BatteryDuration::Unknown => {
|
||||
if half_width > 15 {
|
||||
// TODO: Potentially just don't draw this?
|
||||
if half_width > 20 {
|
||||
Row::new(vec!["Time to full/empty", "N/A"]).style(style)
|
||||
} else {
|
||||
Row::new(vec!["To empty/full", "N/A"]).style(style)
|
||||
Row::new(vec!["Empty/full", "N/A"]).style(style)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue