- Switch to using personal gits for ratatui and ratatui_image

- Activate vb64 feature on personal ratatui_image
- Add more detailed instructions on help string
This commit is contained in:
itsjunetime
2024-05-26 16:23:51 -06:00
parent 46ca98a12d
commit c2a0e203c4
7 changed files with 20 additions and 10 deletions
+1 -3
View File
@@ -146,7 +146,7 @@ impl Tui {
let (msg_str, color) = match self.bottom_msg {
BottomMessage::Help => (
"/: Search, g: Go To Page".to_string(),
"/: Search, g: Go To Page, n: Next Search Result, N: Previous Search Result".to_string(),
Color::Blue
),
BottomMessage::Error(ref e) => (
@@ -248,8 +248,6 @@ impl Tui {
}
fn render_single_page(&mut self, frame: &mut Frame<'_>, page_idx: usize, img_area: Rect) {
// TODO: Sometimes a page just won't render. But there will be space for it so we clearly
// know it should be there. Maybe we're not resetting the last render rect as we should be?
match self.rendered[page_idx].img {
Some(ref page_img) => frame.render_widget(Image::new(&**page_img), img_area),
None => Self::render_loading_in(frame, img_area)