other: Clarify help menu (#800)
* other: clarify that numbers are for help menu * bug: fix incorrect overscroll check, should be min
This commit is contained in:
parent
726e727de6
commit
46a2a3a52b
|
@ -333,9 +333,9 @@ impl Painter {
|
|||
]
|
||||
} else {
|
||||
[
|
||||
Constraint::Percentage(20),
|
||||
Constraint::Percentage(60),
|
||||
Constraint::Percentage(20),
|
||||
Constraint::Percentage(15),
|
||||
Constraint::Percentage(70),
|
||||
Constraint::Percentage(15),
|
||||
]
|
||||
})
|
||||
.split(vertical_dialog_chunk[1]);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use std::cmp::max;
|
||||
use std::cmp::{max, min};
|
||||
|
||||
use unicode_width::UnicodeWidthStr;
|
||||
|
||||
|
@ -88,7 +88,7 @@ impl Painter {
|
|||
.scroll_state
|
||||
.current_scroll_index;
|
||||
|
||||
*index = max(*index, *max_scroll_index);
|
||||
*index = min(*index, *max_scroll_index);
|
||||
}
|
||||
|
||||
f.render_widget(
|
||||
|
|
|
@ -219,7 +219,7 @@ pub static NORD_LIGHT_COLOUR_PALETTE: Lazy<ConfigColours> = Lazy::new(|| ConfigC
|
|||
|
||||
// Help text
|
||||
pub const HELP_CONTENTS_TEXT: [&str; 8] = [
|
||||
"Press the corresponding numbers to jump to the section, or scroll:",
|
||||
"Either scroll or press the number key to go to the corresponding help menu section:",
|
||||
"1 - General",
|
||||
"2 - CPU widget",
|
||||
"3 - Process widget",
|
||||
|
|
Loading…
Reference in New Issue