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

@ -1109,12 +1109,12 @@ impl App {
widget::settings::view_column(children).into()
}
fn preview(
&self,
fn preview<'a>(
&'a self,
entity_opt: &Option<Entity>,
kind: &PreviewKind,
kind: &'a PreviewKind,
context_drawer: bool,
) -> Element<Message> {
) -> Element<'a, Message> {
let mut children = Vec::with_capacity(1);
let entity = entity_opt.unwrap_or_else(|| self.tab_model.active());
match kind {