Improve density on mobile.

This commit is contained in:
2023-11-14 21:33:09 -08:00
parent da15ef0f15
commit a2664473c8
3 changed files with 28 additions and 2 deletions

View File

@@ -504,20 +504,22 @@ fn view_mobile_search_results(query: &str, search_results: &shared::SearchResult
*/
let tid = r.thread.clone();
div![
C!["row"],
div![
C!["subject"],
&r.subject,
ev(Ev::Click, move |_| Msg::ShowPrettyRequest(tid)),
],
div![
span![C!["from"], pretty_authors(&r.authors)],
span![C!["tags"], tags_chiclet(&r.tags, true)],
span![C!["from", "is-size-7"], pretty_authors(&r.authors)],
span![C!["tags", "is-size-7"], tags_chiclet(&r.tags, true)],
],
span![C!["date"], &r.date_relative],
]
});
let first = search_results.page * search_results.results_per_page;
div![
C!["search-results"],
h1!["Search results"],
view_search_pager(first, summaries.len(), search_results.total),
rows,