diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-11-30 12:32:44 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-11-30 12:32:44 +0100 |
| commit | 8174d129fbabd2d39323678d11d868893ddb429a (patch) | |
| tree | 7979a528114cd5fb827f748f678a916e8e8eeddc /ui/src | |
| parent | 5db15c323d76dca9ae71b0204d63dcb09fbbcbc5 (diff) | |
| download | jellything-8174d129fbabd2d39323678d11d868893ddb429a.tar jellything-8174d129fbabd2d39323678d11d868893ddb429a.tar.bz2 jellything-8174d129fbabd2d39323678d11d868893ddb429a.tar.zst | |
new sync cache
Diffstat (limited to 'ui/src')
| -rw-r--r-- | ui/src/node_card.rs | 8 | ||||
| -rw-r--r-- | ui/src/node_page.rs | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/ui/src/node_card.rs b/ui/src/node_card.rs index b4481b7..dfcd37c 100644 --- a/ui/src/node_card.rs +++ b/ui/src/node_card.rs @@ -6,8 +6,8 @@ use crate::{locale::Language, node_page::aspect_class, props::Props}; use jellycommon::{ - Node, - routes::{u_node_slug, u_node_slug_player, u_node_slug_poster}, + Node, PictureSlot, + routes::{u_node_image, u_node_slug, u_node_slug_player}, user::NodeUserData, }; @@ -17,7 +17,7 @@ markup::define! { div[class=cls] { .poster { a[href=u_node_slug(&node.slug)] { - img[src=u_node_slug_poster(&node.slug, 1024), loading="lazy"]; + img[src=u_node_image(&node.slug, PictureSlot::Cover, 1024), loading="lazy"]; } .cardhover.item { @if node.media.is_some() { @@ -42,7 +42,7 @@ markup::define! { div[class="node card widecard poster"] { div[class=&format!("poster {}", aspect_class(node.kind))] { a[href=u_node_slug(&node.slug)] { - img[src=u_node_slug_poster(&node.slug, 1024), loading="lazy"]; + img[src=u_node_image(&node.slug, PictureSlot::Cover, 1024), loading="lazy"]; } .cardhover.item { @if node.media.is_some() { diff --git a/ui/src/node_page.rs b/ui/src/node_page.rs index e7e7b1d..a72eb9a 100644 --- a/ui/src/node_page.rs +++ b/ui/src/node_page.rs @@ -13,12 +13,12 @@ use crate::{ props::Props, }; use jellycommon::{ - Chapter, CreditCategory, IdentifierType, Node, NodeKind, + Chapter, CreditCategory, IdentifierType, Node, NodeKind, PictureSlot, api::NodeFilterSort, routes::{ - u_node_slug, u_node_slug_backdrop, u_node_slug_person_asset, u_node_slug_player, - u_node_slug_player_time, u_node_slug_poster, u_node_slug_thumbnail, - u_node_slug_update_rating, u_node_slug_watched, + u_node_image, u_node_slug, u_node_slug_person_asset, u_node_slug_player, + u_node_slug_player_time, u_node_slug_thumbnail, u_node_slug_update_rating, + u_node_slug_watched, }, user::{ApiWatchedState, NodeUserData, WatchedState}, }; @@ -52,12 +52,12 @@ markup::define! { player: bool, ) { @if !matches!(node.kind, NodeKind::Collection) && !player { - img.backdrop[src=u_node_slug_backdrop(&node.slug, 2048), loading="lazy"]; + img.backdrop[src=u_node_image(&node.slug, PictureSlot::Backdrop, 2048), loading="lazy"]; } .page.node { @if !matches!(node.kind, NodeKind::Collection) && !player { @let cls = format!("bigposter {}", aspect_class(node.kind)); - div[class=cls] { img[src=u_node_slug_poster(&node.slug, 2048), loading="lazy"]; } + div[class=cls] { img[src=u_node_image(&node.slug, PictureSlot::Cover, 2048), loading="lazy"]; } } .title { h1 { @node.title } |