diff options
author | metamuffin <metamuffin@disroot.org> | 2023-08-06 10:32:44 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-08-06 10:32:44 +0200 |
commit | 246f2b9e0b7606f25296683d93ab7f48efd649c4 (patch) | |
tree | 33a547662ce74165046d41cf83ca86dc48aa7371 /server/src/routes/ui/node.rs | |
parent | 3da4609d7d03e004ed81e832d61049f0f977b675 (diff) | |
download | jellything-246f2b9e0b7606f25296683d93ab7f48efd649c4.tar jellything-246f2b9e0b7606f25296683d93ab7f48efd649c4.tar.bz2 jellything-246f2b9e0b7606f25296683d93ab7f48efd649c4.tar.zst |
rename legacy code and fix title display
Diffstat (limited to 'server/src/routes/ui/node.rs')
-rw-r--r-- | server/src/routes/ui/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs index 5e69050..dc64eda 100644 --- a/server/src/routes/ui/node.rs +++ b/server/src/routes/ui/node.rs @@ -66,7 +66,7 @@ pub async fn r_library_node( markup::define! { NodeCard<'a>(id: &'a str, node: &'a NodePublic) { - @let cls = format!("card poster {}", match node.kind {NodeKind::Channel => "poster-square", NodeKind::Video => "thumb-land", NodeKind::Collection => "poster-land", _ => "poster-port"}); + @let cls = format!("node card poster {}", match node.kind {NodeKind::Channel => "poster-square", NodeKind::Video => "thumb-land", NodeKind::Collection => "poster-land", _ => "poster-port"}); div[class=cls] { div.banner { a[href=uri!(r_library_node(id))] { @@ -89,7 +89,7 @@ markup::define! { @if !matches!(node.kind, NodeKind::Collection) { img.backdrop[src=uri!(r_item_assets(id, AssetRole::Backdrop))]; } - div.page.item { + div.page.node { @if !matches!(node.kind, NodeKind::Collection) { div.banner { img[src=uri!(r_item_assets(id, AssetRole::Poster))]; } } |