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