diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-02 16:57:34 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-02 16:57:34 +0100 |
commit | c4d40a34be067872e8b6f59520ab9da8d89b70e0 (patch) | |
tree | c7a5d12b100051938655354e95eff1763d16c24e | |
parent | 4d3ec68b9cbac493ee76981527cb0e780fac9432 (diff) | |
download | jellything-c4d40a34be067872e8b6f59520ab9da8d89b70e0.tar jellything-c4d40a34be067872e8b6f59520ab9da8d89b70e0.tar.bz2 jellything-c4d40a34be067872e8b6f59520ab9da8d89b70e0.tar.zst |
default square poster aspect
-rw-r--r-- | server/src/routes/ui/node.rs | 5 | ||||
-rw-r--r-- | web/style/props.css | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs index 2229296..63578be 100644 --- a/server/src/routes/ui/node.rs +++ b/server/src/routes/ui/node.rs @@ -258,7 +258,7 @@ markup::define! { // } @for (kind, value) in &node.ratings { @match kind { - Rating::YoutubeLikes => {p{ @format_count(*value as usize) " Likes" }} + Rating::YoutubeLikes => {p.likes{ @format_count(*value as usize) " Likes" }} Rating::YoutubeViews => {p{ @format_count(*value as usize) " Views" }} Rating::YoutubeFollowers => {p{ @format_count(*value as usize) " Subscribers" }} Rating::RottenTomatoes => {p.rating{ @value " Tomatoes" }} @@ -284,10 +284,9 @@ markup::define! { pub fn aspect_class(kind: NodeKind) -> &'static str { match kind { - NodeKind::Channel | NodeKind::Music => "aspect-square", NodeKind::Video => "aspect-thumb", NodeKind::Collection => "aspect-land", - _ => "aspect-port", + NodeKind::Channel | NodeKind::Music | _ => "aspect-square", } } diff --git a/web/style/props.css b/web/style/props.css index 4745834..0477f36 100644 --- a/web/style/props.css +++ b/web/style/props.css @@ -49,6 +49,9 @@ .props p.visibility::before { content: "visibility_off"; } +/* .props p.likes::before { + content: "thumb_up"; +} */ @media (max-width: 500px) { .props { |