Skip to content

Commit

Permalink
💄 update shortcuts + constraint on groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Nov 17, 2021
1 parent 3ace49f commit 6e929dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.direction(Direction::Vertical)
.margin(1)
.horizontal_margin(4)
.constraints([Constraint::Percentage(10), Constraint::Percentage(90)].as_ref())
.constraints([Constraint::Length(3), Constraint::Percentage(90)].as_ref())
.split(frame.size());

let chunk_b = Layout::default()
Expand Down
8 changes: 5 additions & 3 deletions src/render_shortcuts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ pub fn render_shortcuts(_app: &App, area: Rect, frame: &mut Frame<CrosstermBacke
));

let text = vec![
Spans::from("'c' to alternate between configuration display mode"),
Spans::from("'g' to alternate between groups mode"),
Spans::from("'Enter' to SSH to your server"),
Spans::from("'Enter': Validate"),
Spans::from("'Tab': Change Group"),
Spans::from("'c': Configuration Display Mode"),
// Spans::from("'g' to alternate between groups mode"),
Spans::from("'q': Exit"),
];

let paragraph = Paragraph::new(text)
Expand Down

0 comments on commit 6e929dc

Please sign in to comment.