web: change style for attachments
This commit is contained in:
parent
4139ec38d8
commit
523584fbbc
@ -58,6 +58,13 @@
|
|||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.message .body .attachments hr {
|
||||||
|
border: none;
|
||||||
|
border-top: 1px dashed #888;
|
||||||
|
background-color: #f000;
|
||||||
|
margin: 0.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
background-color: red;
|
background-color: red;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -616,14 +616,14 @@ fn message_render(msg: &ShowThreadQueryThreadMessages, open: bool) -> Node<Msg>
|
|||||||
C!["view-part-text-html"],
|
C!["view-part-text-html"],
|
||||||
raw![contents],
|
raw![contents],
|
||||||
IF!(!msg.attachments.is_empty() =>
|
IF!(!msg.attachments.is_empty() =>
|
||||||
div![
|
div![
|
||||||
C!["attachments"],
|
C!["attachments"],
|
||||||
br![],
|
hr![],
|
||||||
h2!["Attachments"],
|
h2!["Attachments"],
|
||||||
msg.attachments
|
msg.attachments
|
||||||
.iter()
|
.iter()
|
||||||
.map(|a| div!["Filename: ", &a.filename, " ", &a.content_type])
|
.map(|a| div!["Filename: ", &a.filename, " ", &a.content_type])
|
||||||
]),
|
]),
|
||||||
view_content_tree(&content_tree),
|
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> {
|
fn view_content_tree(content_tree: &str) -> Node<Msg> {
|
||||||
let debug_open = use_state(|| false);
|
let debug_open = use_state(|| false);
|
||||||
div![
|
div![
|
||||||
hr![],
|
|
||||||
small![
|
small![
|
||||||
i![C![
|
i![C![
|
||||||
"fa-solid",
|
"fa-solid",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user