ui improved
This commit is contained in:
@ -213,4 +213,4 @@ fn run_app<B: Backend + std::io::Write>(terminal: &mut Terminal<B>, app: &mut Ap
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,7 +33,7 @@ pub fn ui(f: &mut Frame, app: &mut App) {
|
|||||||
|
|
||||||
// Help text
|
// Help text
|
||||||
let help_text = match app.input_mode {
|
let help_text = match app.input_mode {
|
||||||
InputMode::Normal => "Enter: Connect | m: Mosh | n: New | Shift+n: Copy ID | i: Edit | d: Delete | q: Quit | j/k: Up/Down",
|
InputMode::Normal => "Enter: SSH Connect | m: Mosh Connect | n: New | Shift+n: Copy ID | i: Edit | d: Delete | q: Quit",
|
||||||
InputMode::Adding(_) => "Enter: Save | Esc: Cancel | Tab: Next Field",
|
InputMode::Adding(_) => "Enter: Save | Esc: Cancel | Tab: Next Field",
|
||||||
InputMode::Editing(_) => "Enter: Save | Esc: Cancel | Tab: Next Field",
|
InputMode::Editing(_) => "Enter: Save | Esc: Cancel | Tab: Next Field",
|
||||||
};
|
};
|
||||||
@ -165,4 +165,4 @@ pub fn centered_rect(percent_x: u16, percent_y: u16, r: Rect) -> Rect {
|
|||||||
.as_ref(),
|
.as_ref(),
|
||||||
)
|
)
|
||||||
.split(popup_layout[1])[1]
|
.split(popup_layout[1])[1]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user