diff --git a/web/src/view/mod.rs b/web/src/view/mod.rs index 30d63f2..37fb374 100644 --- a/web/src/view/mod.rs +++ b/web/src/view/mod.rs @@ -934,6 +934,14 @@ fn render_closed_header(msg: &ShowThreadQueryThreadOnEmailThreadMessages) -> Nod fn message_render(msg: &ShowThreadQueryThreadOnEmailThreadMessages, open: bool) -> Node { let expand_id = msg.id.clone(); + let from = match &msg.from { + Some(ShowThreadQueryThreadOnEmailThreadMessagesFrom { addr, .. }) => addr.clone(), + Some(ShowThreadQueryThreadOnEmailThreadMessagesFrom { + addr: Some(addr), .. + }) => Some(addr.to_string()), + _ => None, + }; + let from = from.map(|f| f.replace('.', "-").replace('@', "-")); div![ C!["lg:mb-4"], div![ @@ -953,7 +961,7 @@ fn message_render(msg: &ShowThreadQueryThreadOnEmailThreadMessages, open: bool) ], IF!(open => div![ - C!["bg-white", "text-black", "p-4", "min-w-full", "w-0","overflow-x-auto"], + C!["bg-white", "text-black", "p-4", "min-w-full", "w-0","overflow-x-auto", from], match &msg.body { ShowThreadQueryThreadOnEmailThreadMessagesBody::UnhandledContentType( ShowThreadQueryThreadOnEmailThreadMessagesBodyOnUnhandledContentType { contents ,content_tree}, diff --git a/web/static/overrides.css b/web/static/overrides.css index 24e60a5..11e2f1b 100644 --- a/web/static/overrides.css +++ b/web/static/overrides.css @@ -51,6 +51,15 @@ html { margin-left: 2em; } +.mail-thread .noreply-news-bloomberg-com img.logo-image { + width: initial !important; + max-width: 100% !important; +} +.mail-thread .noreply-news-bloomberg-com h2 { + margin: 0 !important; + padding: 0 !important; +} + /* Hackaday figures have unreadable black on dark grey */ .news-post figcaption.wp-caption-text { background-color: initial !important; @@ -66,4 +75,4 @@ html { height: initial !important; overflow: auto !important; position: static !important; -} \ No newline at end of file +}