aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2023-10-29 20:16:21 +0100
committermetamuffin <metamuffin@disroot.org>2023-10-29 20:19:02 +0100
commit9a9dbc6b86d1ab76777eb9df612c36c8536e574c (patch)
treea3b8c229484f7aaf51166ec409116ffc11197ae2 /server/src/routes/ui
parent524230fd8378b699e98012c32e64773b2efba53f (diff)
downloadjellything-9a9dbc6b86d1ab76777eb9df612c36c8536e574c.tar
jellything-9a9dbc6b86d1ab76777eb9df612c36c8536e574c.tar.bz2
jellything-9a9dbc6b86d1ab76777eb9df612c36c8536e574c.tar.zst
Add better poster style; Add material icons
Signed-off-by: metamuffin <metamuffin@disroot.org>
Diffstat (limited to 'server/src/routes/ui')
-rw-r--r--server/src/routes/ui/node.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs
index bb97146..c95f8eb 100644
--- a/server/src/routes/ui/node.rs
+++ b/server/src/routes/ui/node.rs
@@ -87,14 +87,9 @@ markup::define! {
a[href=uri!(r_library_node(id))] {
img[src=uri!(r_item_assets(id, AssetRole::Poster, Some(1024)))];
}
- @if matches!(node.kind, NodeKind::Collection | NodeKind::Channel) {
- .cardhover.open {
- a[href=&uri!(r_library_node(id))] { "Open" }
- @Props { node }
- }
- } else {
+ @if !(matches!(node.kind, NodeKind::Collection | NodeKind::Channel)) {
.cardhover.item {
- a.play[href=&uri!(r_player(id, PlayerConfig::default()))] { "▶" }
+ a.play[href=&uri!(r_player(id, PlayerConfig::default()))] { "play_arrow" }
@Props { node }
}
}