We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59c54dc commit 4aaee89Copy full SHA for 4aaee89
crates/turbo-updater/src/ui/mod.rs
@@ -35,12 +35,12 @@ pub fn message(text: &str) -> Result<(), UpdateNotifierError> {
35
};
36
37
// render differently depending on viewport
38
- if let Some((term_width, _)) = size {
+ if let Some((_, num_cols)) = size {
39
// if possible, pad this value slightly
40
- let term_width = if term_width > 2 {
41
- usize::from(term_width) - 2
+ let term_width = if num_cols > 2 {
+ usize::from(num_cols) - 2
42
} else {
43
- term_width.into()
+ num_cols.into()
44
45
46
let can_fit_box = term_width >= full_message_width;
0 commit comments