Rename pop widget to sensor 📡

This commit is contained in:
Héctor Ramón Jiménez 2025-08-02 22:57:09 +02:00
parent c46600a69a
commit 57c628839a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 31 additions and 28 deletions

View file

@ -6,7 +6,7 @@ use iced::highlighter;
use iced::time::{self, Instant, milliseconds};
use iced::widget::{
self, button, center_x, container, horizontal_space, hover, image,
markdown, pop, right, row, scrollable, text_editor, toggler,
markdown, right, row, scrollable, sensor, text_editor, toggler,
};
use iced::window;
use iced::{
@ -267,7 +267,7 @@ impl<'a> markdown::Viewer<'a, Message> for CustomViewer<'a> {
)
.into()
} else {
pop(horizontal_space())
sensor(horizontal_space())
.key_ref(url.as_str())
.delay(milliseconds(500))
.on_show(|_size| Message::ImageShown(url.clone()))