web: wrap content tree debug so messages aren't super wide
This commit is contained in:
parent
e0890f1181
commit
37eb3d1dfd
@ -158,6 +158,9 @@ blockquote[type="cite"],
|
|||||||
margin-left: .5em;
|
margin-left: .5em;
|
||||||
margin-bottom: 0 !important;
|
margin-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
|
.content-tree {
|
||||||
|
white-space: pre-line;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
@ -292,7 +292,10 @@ fn thread(thread: &ShowThreadQueryThread) -> Node<Msg> {
|
|||||||
contents,
|
contents,
|
||||||
content_tree,
|
content_tree,
|
||||||
},
|
},
|
||||||
) => div![raw_text_message(&contents), pre![content_tree]],
|
) => div![
|
||||||
|
raw_text_message(&contents),
|
||||||
|
pre![C!["content-tree"], content_tree]
|
||||||
|
],
|
||||||
ShowThreadQueryThreadMessagesBody::Html(
|
ShowThreadQueryThreadMessagesBody::Html(
|
||||||
ShowThreadQueryThreadMessagesBodyOnHtml {
|
ShowThreadQueryThreadMessagesBodyOnHtml {
|
||||||
contents,
|
contents,
|
||||||
@ -310,7 +313,7 @@ fn thread(thread: &ShowThreadQueryThread) -> Node<Msg> {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|a| div!["Filename: ", &a.filename, " ", &a.content_type])
|
.map(|a| div!["Filename: ", &a.filename, " ", &a.content_type])
|
||||||
]),
|
]),
|
||||||
pre![content_tree]
|
pre![C!["content-tree"], content_tree]
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user