Add text previews
This commit is contained in:
parent
3ea075b2c6
commit
081156670e
3 changed files with 87 additions and 30 deletions
|
|
@ -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)) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue