mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 05:39:52 -07:00
Update to ratatui-image@0.8.1 (#215)
This commit is contained in:
parent
95f2c7af30
commit
8ee203c9a9
3 changed files with 8 additions and 29 deletions
|
@ -1,6 +1,6 @@
|
|||
//! Message scrollback
|
||||
|
||||
use ratatui_image::FixedImage;
|
||||
use ratatui_image::Image;
|
||||
use regex::Regex;
|
||||
|
||||
use matrix_sdk::ruma::OwnedRoomId;
|
||||
|
@ -1323,7 +1323,7 @@ impl<'a> StatefulWidget for Scrollback<'a> {
|
|||
// Render image previews after all text lines have been drawn, as the render might draw below the current
|
||||
// line.
|
||||
for (x, y, backend) in image_previews {
|
||||
let image_widget = FixedImage::new(backend);
|
||||
let image_widget = Image::new(backend);
|
||||
let mut rect = backend.rect();
|
||||
rect.x = x;
|
||||
rect.y = y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue