Add text previews

This commit is contained in:
Jeremy Soller 2024-10-10 10:05:48 -06:00
parent 3ea075b2c6
commit 081156670e
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
3 changed files with 87 additions and 30 deletions

View file

@ -450,7 +450,7 @@ impl App {
col.into()
}
fn preview(&self, kind: &PreviewKind) -> Element<AppMessage> {
fn preview<'a>(&'a self, kind: &'a PreviewKind) -> Element<'a, AppMessage> {
let mut children = Vec::with_capacity(1);
match kind {
PreviewKind::Custom(PreviewItem(item)) => {