diff --git a/web/index.html b/web/index.html index b1ce2b5..572c9ce 100644 --- a/web/index.html +++ b/web/index.html @@ -58,6 +58,13 @@ overflow-wrap: break-word; } + .message .body .attachments hr { + border: none; + border-top: 1px dashed #888; + background-color: #f000; + margin: 0.5rem 0; + } + .error { background-color: red; } diff --git a/web/src/view/mod.rs b/web/src/view/mod.rs index 983b467..c7eb00e 100644 --- a/web/src/view/mod.rs +++ b/web/src/view/mod.rs @@ -616,14 +616,14 @@ fn message_render(msg: &ShowThreadQueryThreadMessages, open: bool) -> Node C!["view-part-text-html"], raw![contents], IF!(!msg.attachments.is_empty() => - div![ - C!["attachments"], - br![], - h2!["Attachments"], - msg.attachments - .iter() - .map(|a| div!["Filename: ", &a.filename, " ", &a.content_type]) - ]), + div![ + C!["attachments"], + hr![], + h2!["Attachments"], + msg.attachments + .iter() + .map(|a| div!["Filename: ", &a.filename, " ", &a.content_type]) + ]), view_content_tree(&content_tree), ], } @@ -692,7 +692,6 @@ fn thread(thread: &ShowThreadQueryThread, open_messages: &HashSet) -> No fn view_content_tree(content_tree: &str) -> Node { let debug_open = use_state(|| false); div![ - hr![], small![ i![C![ "fa-solid",