Make clicking search results on mobile easier.

This commit is contained in:
Bill Thiede 2023-11-21 12:27:58 -08:00
parent 2a24a20529
commit 57ccef18cb

View File

@ -528,17 +528,19 @@ fn view_mobile_search_results(query: &str, search_results: &shared::SearchResult
*/ */
let tid = r.thread.clone(); let tid = r.thread.clone();
let datetime = human_age(r.timestamp as i64); let datetime = human_age(r.timestamp as i64);
div![ a![
C!["row"], C!["has-text-light"],
attrs! {
At::Href => urls::thread(&tid)
},
div![ div![
C!["subject"], C!["row"],
&r.subject, div![C!["subject"], &r.subject],
ev(Ev::Click, move |_| Msg::ShowPrettyRequest(tid)), span![C!["from", "is-size-7"], pretty_authors(&r.authors)],
], div![
span![C!["from", "is-size-7"], pretty_authors(&r.authors)], span![C!["is-size-7"], tags_chiclet(&r.tags, true)],
div![ span![C!["is-size-7", "float-right", "date"], datetime]
span![C!["is-size-7"], tags_chiclet(&r.tags, true)], ]
span![C!["is-size-7", "float-right", "date"], datetime]
] ]
] ]
}); });