Skip to content

Commit

Permalink
Update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Feel-ix-343 committed Feb 28, 2024
1 parent e13f2bc commit 1508920
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ fn referenceable_string(vault: &Vault, referenceable: &Referenceable) -> Option<
match preview {
Preview::Empty => Some("No Preview".into()),
Preview::Text(text) => match referenceable {
Referenceable::File(_, _) => format!("File Preview:\n---\n\n{}", text).into(),
Referenceable::Heading(_, _) => format!("Heading Preview:\n---\n\n{}", text).into(),
Referenceable::IndexedBlock(_, _) => format!("Block Preview:\n---\n\n{}", text).into(),
Referenceable::Footnote(_, _) => format!("Footnote Preview:\n---\n\n{}", text).into(),
_ => format!("Preview:\n---\n\n{}", text).into(),
Referenceable::File(_, _) => format!("`File Preview:`\n\n{}", text).into(),
Referenceable::Heading(_, _) => format!("`Heading Preview:`\n\n{}", text).into(),
Referenceable::IndexedBlock(_, _) => format!("`Block Preview:`\n\n{}", text).into(),
Referenceable::Footnote(_, _) => format!("`Footnote Preview:`\n\n{}", text).into(),
_ => format!("`Preview:`\n{}", text).into(),
},
}
}
Expand Down

0 comments on commit 1508920

Please sign in to comment.