This commit is contained in:
2025-05-29 21:27:15 -04:00
parent 0de755cfc9
commit adf682a981
12 changed files with 59 additions and 83 deletions

View File

@@ -15,25 +15,13 @@ pub fn MediaItem(props: MediaItemProps) -> Element {
let src = format!("{HOST}/m/thumb/{id}");
rsx! {
a{
class: "mediaItem",
href: "{HOST}/m/{id}",
target: "_blank",
img{ src: src }
span {
class: "info",
span{
class: "name",
"{filename}"
},
span{
class: "details",
span{
"{mtype}"
},
span{
"{props.item.view_count}"
},
a { class: "mediaItem", href: "{HOST}/m/{id}", target: "_blank",
img { src }
span { class: "info",
span { class: "name", "{filename}" }
span { class: "details",
span { "{mtype}" }
span { "{props.item.view_count}" }
}
}
}