diff options
author | metamuffin <metamuffin@disroot.org> | 2023-08-06 22:16:13 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-08-06 22:16:13 +0200 |
commit | b05f62e1f35c5d3205f11551532808e434b62023 (patch) | |
tree | 2a7c60f9fb62d303b6cc9f3cd440b077c76ad852 | |
parent | 8f894039cc6db9f024517f973f8835cadbdb8864 (diff) | |
download | jellything-b05f62e1f35c5d3205f11551532808e434b62023.tar jellything-b05f62e1f35c5d3205f11551532808e434b62023.tar.bz2 jellything-b05f62e1f35c5d3205f11551532808e434b62023.tar.zst |
description with p instead of pre
-rw-r--r-- | server/src/routes/ui/node.rs | 4 |
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 { |