web: add class for mail vs news-post bodies

This commit is contained in:
Bill Thiede 2024-08-31 11:54:19 -07:00
parent a8d5617cf2
commit 85c762a297

View File

@ -705,7 +705,7 @@ fn message_render(msg: &ShowThreadQueryThreadOnEmailThreadMessages, open: bool)
],
IF!(open =>
div![
C!["body"],
C!["body", "mail"],
match &msg.body {
ShowThreadQueryThreadOnEmailThreadMessagesBody::UnhandledContentType(
ShowThreadQueryThreadOnEmailThreadMessagesBodyOnUnhandledContentType { contents ,content_tree},
@ -1106,13 +1106,17 @@ fn news_post(post: &ShowThreadQueryThreadOnNewsPost, show_icon_text: bool) -> No
],
],
],
// This would be the holder for spam buttons on emails
// This would be the holder for spam buttons on emails, needed to keep layout
// consistent
div![C!["level-item"], div![]]
],
div![
C!["message"],
div![C!["header"], render_news_post_header(&post)],
div![C!["body", format!("site-{}", post.slug)], raw![&post.body]]
div![
C!["body", "news-post", format!("site-{}", post.slug)],
raw![&post.body]
]
] /* TODO(wathiede): plumb in orignal id
a![
attrs! {At::Href=>api::original(&thread_node.0.as_ref().expect("message missing").id)},