Use Key trait to remove Cow in pop widget
This commit is contained in:
parent
508ad512d6
commit
0290364936
2 changed files with 95 additions and 23 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue