aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/routes/ui/node.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs
index 97d0516..301f89c 100644
--- a/server/src/routes/ui/node.rs
+++ b/server/src/routes/ui/node.rs
@@ -103,7 +103,9 @@ markup::define! {
.details {
@Props { node }
h3 { @node.tagline }
- p { @if matches!(node.kind, NodeKind::Video | NodeKind::Channel) { pre { @node.description } } else { @node.description } }
+ @if let Some(description) = &node.description {
+ p { @for line in description.lines() { @line br; } }
+ }
}
@if let NodeKind::Collection = node.kind {
@if let Some(parent) = &node.parent {