web: wrap content tree debug so messages aren't super wide

This commit is contained in:
Bill Thiede 2023-12-07 10:24:39 -08:00
parent e0890f1181
commit 37eb3d1dfd
2 changed files with 8 additions and 2 deletions

View File

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

View File

@ -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]
], ],
} }
], ],