Skip to content

Commit

Permalink
fix: getting locked out when running script
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevithakannan2 committed Nov 6, 2024
1 parent 88d6fd1 commit 1ff69c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tui/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ impl AppState {
pub fn draw(&mut self, frame: &mut Frame) {
let terminal_size = frame.area();

if terminal_size.width < MIN_WIDTH || terminal_size.height < MIN_HEIGHT {
if !matches!(self.focus, Focus::FloatingWindow(_)) && terminal_size.width < MIN_WIDTH
|| terminal_size.height < MIN_HEIGHT
{
let warning = Paragraph::new(format!(
"Terminal size too small:\nWidth = {} Height = {}\n\nMinimum size:\nWidth = {} Height = {}",
terminal_size.width,
Expand Down

0 comments on commit 1ff69c7

Please sign in to comment.