aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/node.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-02-03 00:40:42 +0100
committermetamuffin <metamuffin@disroot.org>2025-02-03 00:40:42 +0100
commit78a1632e2f5d75a212a85a0da24bf325a1153426 (patch)
tree48edde53e0ad84367d395163e47813a0aba83860 /server/src/routes/ui/node.rs
parente3daa6159f2b2048c2c07d349488e117e50285dd (diff)
downloadjellything-78a1632e2f5d75a212a85a0da24bf325a1153426.tar
jellything-78a1632e2f5d75a212a85a0da24bf325a1153426.tar.bz2
jellything-78a1632e2f5d75a212a85a0da24bf325a1153426.tar.zst
fix import aspect
Diffstat (limited to 'server/src/routes/ui/node.rs')
-rw-r--r--server/src/routes/ui/node.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs
index 63578be..7c89462 100644
--- a/server/src/routes/ui/node.rs
+++ b/server/src/routes/ui/node.rs
@@ -283,10 +283,12 @@ markup::define! {
}
pub fn aspect_class(kind: NodeKind) -> &'static str {
+ use NodeKind::*;
match kind {
- NodeKind::Video => "aspect-thumb",
- NodeKind::Collection => "aspect-land",
- NodeKind::Channel | NodeKind::Music | _ => "aspect-square",
+ Video | Episode => "aspect-thumb",
+ Collection => "aspect-land",
+ Season | Show | Series | Movie | ShortFormVideo => "aspect-port",
+ Channel | Music | Unknown => "aspect-square",
}
}