Merge remote-tracking branch 'origin/min-tui' into optimization

This commit is contained in:
Jeevitha Kannan K S 2024-11-14 19:47:54 +05:30
commit 1044517d8e
No known key found for this signature in database
GPG Key ID: 5904C34A2F7CE333

View File

@ -251,7 +251,8 @@ impl AppState {
} }
fn is_terminal_drawable(&mut self, terminal_size: Rect) -> bool { fn is_terminal_drawable(&mut self, terminal_size: Rect) -> bool {
!self.size_bypass && (terminal_size.height < MIN_HEIGHT || terminal_size.width < MIN_WIDTH) !(self.size_bypass || matches!(self.focus, Focus::FloatingWindow(_)))
&& (terminal_size.height < MIN_HEIGHT || terminal_size.width < MIN_WIDTH)
} }
pub fn draw(&mut self, frame: &mut Frame) { pub fn draw(&mut self, frame: &mut Frame) {