diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-22 03:22:39 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-22 03:22:39 +0100 |
| commit | aa13fade6fcabf9122babac7ac812a433a81b627 (patch) | |
| tree | f284f4d1502e3c75d37508ee0e8219add6c095a6 /ui/src/components/node_page.rs | |
| parent | eb46c37ebf2453f334bac086dbf9e91837dd082b (diff) | |
| download | jellything-aa13fade6fcabf9122babac7ac812a433a81b627.tar jellything-aa13fade6fcabf9122babac7ac812a433a81b627.tar.bz2 jellything-aa13fade6fcabf9122babac7ac812a433a81b627.tar.zst | |
node highlight card + css cleanup
Diffstat (limited to 'ui/src/components/node_page.rs')
| -rw-r--r-- | ui/src/components/node_page.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ui/src/components/node_page.rs b/ui/src/components/node_page.rs index 7deaf61..5823933 100644 --- a/ui/src/components/node_page.rs +++ b/ui/src/components/node_page.rs @@ -181,6 +181,7 @@ markup::define! { } Player<'a>(ri: &'a RenderInfo<'a>, nku: Object<'a>) { + @let _ = ri; @let node = nku.get(NKU_NODE).unwrap_or_default(); @let pics = node.get(NO_PICTURES).unwrap_or_default(); video[id="player", poster=pics.get(PICT_COVER).map(|p| u_image(p, 2048))] {} @@ -188,11 +189,11 @@ markup::define! { } -fn chapter_key_time(c: Object, dur: f64) -> f64 { - let start = c.get(CH_START).unwrap_or(0.); - let end = c.get(CH_END).unwrap_or(dur); - start * 0.8 + end * 0.2 -} +// fn chapter_key_time(c: Object, dur: f64) -> f64 { +// let start = c.get(CH_START).unwrap_or(0.); +// let end = c.get(CH_END).unwrap_or(dur); +// start * 0.8 + end * 0.2 +// } pub fn aspect_class(node: Object<'_>) -> &'static str { let kind = node.get(NO_KIND).unwrap_or(KIND_COLLECTION); |