web: change style for attachments

This commit is contained in:
Bill Thiede 2024-02-23 16:54:53 -08:00
parent 4139ec38d8
commit 523584fbbc
2 changed files with 15 additions and 9 deletions

View File

@ -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;
}

View File

@ -616,14 +616,14 @@ fn message_render(msg: &ShowThreadQueryThreadMessages, open: bool) -> Node<Msg>
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<String>) -> No
fn view_content_tree(content_tree: &str) -> Node<Msg> {
let debug_open = use_state(|| false);
div![
hr![],
small![
i![C![
"fa-solid",