From 38656661b4bbc123999c15f25595647372c4563e Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Mon, 17 Oct 2022 18:54:03 +0200 Subject: [PATCH] Fix appearance issues --- rust/cli_player/src/ui_screens/input_screen.rs | 2 +- rust/cli_player/src/ui_screens/popup_screen.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/cli_player/src/ui_screens/input_screen.rs b/rust/cli_player/src/ui_screens/input_screen.rs index d99d92d..d3b02c9 100644 --- a/rust/cli_player/src/ui_screens/input_screen.rs +++ b/rust/cli_player/src/ui_screens/input_screen.rs @@ -125,7 +125,7 @@ impl<'a> InputScreen<'a> { fn ui(&mut self, f: &mut Frame) { 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, &f.size(), ); diff --git a/rust/cli_player/src/ui_screens/popup_screen.rs b/rust/cli_player/src/ui_screens/popup_screen.rs index bfe90e6..97914d0 100644 --- a/rust/cli_player/src/ui_screens/popup_screen.rs +++ b/rust/cli_player/src/ui_screens/popup_screen.rs @@ -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 /// screen pub fn show_screen_too_small_popup(f: &mut Frame) { - PopupScreen::new("Screen too small!").show_in_frame(f) + PopupScreen::new("🖵 Screen too small!").show_in_frame(f) } pub struct PopupScreen<'a> {