Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshew committed Nov 29, 2024
1 parent 60c2318 commit f441870
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions crates/turborepo-ui/src/tui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use tokio::{
};
use tracing::{debug, trace};

use crate::tui::popup;
use crate::tui::popup::{popup, popup_area};

pub const FRAMERATE: Duration = Duration::from_millis(3);
const RESIZE_DEBOUNCE_DELAY: Duration = Duration::from_millis(10);
Expand Down Expand Up @@ -868,9 +868,9 @@ fn view<W>(app: &mut App<W>, f: &mut Frame) {
f.render_widget(&pane_to_render, pane);

if app.showing_help_popup {
let area = popup::popup_area(app.size);
let area = popup_area(app.size);
f.render_widget(Clear, area); // Clears background underneath popup
f.render_widget(popup::block(), area);
f.render_widget(popup(), area);
}
}

Expand Down
6 changes: 3 additions & 3 deletions crates/turborepo-ui/src/tui/popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ pub fn popup_area(area: SizeInfo) -> Rect {
area
}

pub fn block() -> List<'static> {
let mer = Block::bordered()
pub fn popup() -> List<'static> {
let outer = Block::bordered()
.title(" Keybinds ")
.padding(Padding::uniform(1));

Expand All @@ -56,5 +56,5 @@ pub fn block() -> List<'static> {
.into_iter()
.map(|item| ListItem::new(Line::from(item))),
)
.block(mer)
.block(outer)
}

0 comments on commit f441870

Please sign in to comment.