Use Key trait to remove Cow in pop widget

This commit is contained in:
Héctor Ramón Jiménez 2025-05-13 16:41:34 +02:00
parent 508ad512d6
commit 0290364936
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 95 additions and 23 deletions

View file

@ -268,7 +268,7 @@ impl<'a> markdown::Viewer<'a, Message> for CustomViewer<'a> {
.into()
} else {
pop(horizontal_space())
.key(url.as_str())
.key_ref(url.as_str())
.delay(milliseconds(500))
.on_show(|_size| Message::ImageShown(url.clone()))
.into()