Update to ratatui-image@0.8.1 (#215)

This commit is contained in:
Benjamin Grosse
2024-03-09 04:04:52 +00:00
committed by GitHub
parent 95f2c7af30
commit 8ee203c9a9
3 changed files with 8 additions and 29 deletions

View File

@@ -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;