This commit is contained in:
		@@ -125,7 +125,7 @@ impl<'a> InputScreen<'a> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    fn ui<B: Backend>(&mut self, f: &mut Frame<B>) {
 | 
					    fn ui<B: Backend>(&mut self, f: &mut Frame<B>) {
 | 
				
			||||||
        let area = centered_rect_size(
 | 
					        let area = centered_rect_size(
 | 
				
			||||||
            (self.msg.len() + 4).max(self.max_len + 4) as u16,
 | 
					            (self.msg.len() + 4).max(self.max_len + 4).max(25) as u16,
 | 
				
			||||||
            7,
 | 
					            7,
 | 
				
			||||||
            &f.size(),
 | 
					            &f.size(),
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,7 +17,7 @@ use crate::ui_widgets::button_widget::ButtonWidget;
 | 
				
			|||||||
/// Convenience function to inform user that his terminal window is too small to display the current
 | 
					/// Convenience function to inform user that his terminal window is too small to display the current
 | 
				
			||||||
/// screen
 | 
					/// screen
 | 
				
			||||||
pub fn show_screen_too_small_popup<B: Backend>(f: &mut Frame<B>) {
 | 
					pub fn show_screen_too_small_popup<B: Backend>(f: &mut Frame<B>) {
 | 
				
			||||||
    PopupScreen::new("Screen too small!").show_in_frame(f)
 | 
					    PopupScreen::new("🖵  Screen too small!").show_in_frame(f)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pub struct PopupScreen<'a> {
 | 
					pub struct PopupScreen<'a> {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user