web: update style for rendering emails, including attachments
This commit is contained in:
@@ -223,7 +223,7 @@ pub async fn thread(
|
||||
}
|
||||
|
||||
format!(
|
||||
r#"<p class="view-part-text-plain">{}</p>"#,
|
||||
r#"<p class="view-part-text-plain font-mono whitespace-pre">{}</p>"#,
|
||||
// Trim newlines to prevent excessive white space at the beginning/end of
|
||||
// presenation. Leave tabs and spaces incase plain text attempts to center a
|
||||
// header on the first line.
|
||||
@@ -578,7 +578,7 @@ fn flatten_body_parts(parts: &[Body]) -> Body {
|
||||
.map(|p| match p {
|
||||
Body::PlainText(PlainText { text, .. }) => {
|
||||
format!(
|
||||
r#"<p class="view-part-text-plain">{}</p>"#,
|
||||
r#"<p class="view-part-text-plain font-mono whitespace-pre">{}</p>"#,
|
||||
// Trim newlines to prevent excessive white space at the beginning/end of
|
||||
// presenation. Leave tabs and spaces incase plain text attempts to center a
|
||||
// header on the first line.
|
||||
|
||||
Reference in New Issue
Block a user