mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-24 22:14:28 +00:00
Compare commits
3 Commits
7c74aa8a21
...
94c5d27ea6
Author | SHA1 | Date | |
---|---|---|---|
|
94c5d27ea6 | ||
|
4a9d726fdb | ||
|
1ff69c7846 |
|
@ -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 = {}",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user