web: change style for attachments
This commit is contained in:
parent
4139ec38d8
commit
523584fbbc
@ -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;
|
||||
}
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user