This commit is contained in:
Jeevitha Kannan K S 2024-11-08 05:33:37 +05:30 committed by GitHub
commit 94c5d27ea6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,7 +219,8 @@ impl AppState {
let terminal_size = frame.area(); let terminal_size = frame.area();
if !self.size_bypass if !self.size_bypass
&& (terminal_size.height < MIN_HEIGHT || terminal_size.width < MIN_WIDTH) && !matches!(self.focus, Focus::FloatingWindow(_))
&& (terminal_size.width < MIN_WIDTH || terminal_size.height < MIN_HEIGHT)
{ {
let warning = Paragraph::new(format!( let warning = Paragraph::new(format!(
"Terminal size too small:\nWidth = {} Height = {}\n\nMinimum size:\nWidth = {} Height = {}", "Terminal size too small:\nWidth = {} Height = {}\n\nMinimum size:\nWidth = {} Height = {}",