web: don't show text on action icons on tablet/mobile
This commit is contained in:
@@ -10,19 +10,27 @@ use crate::{
|
||||
};
|
||||
|
||||
pub(super) fn view(model: &Model) -> Node<Msg> {
|
||||
let show_icon_text = false;
|
||||
let content = match &model.context {
|
||||
Context::None => div![h1!["Loading"]],
|
||||
Context::ThreadResult {
|
||||
thread,
|
||||
open_messages,
|
||||
} => view::thread(thread, open_messages),
|
||||
} => view::thread(thread, open_messages, show_icon_text),
|
||||
Context::SearchResult {
|
||||
query,
|
||||
results,
|
||||
count,
|
||||
pager,
|
||||
selected_threads,
|
||||
} => search_results(&query, results.as_slice(), *count, pager, selected_threads),
|
||||
} => search_results(
|
||||
&query,
|
||||
results.as_slice(),
|
||||
*count,
|
||||
pager,
|
||||
selected_threads,
|
||||
show_icon_text,
|
||||
),
|
||||
};
|
||||
div![
|
||||
view_header(&model.query, &model.refreshing_state),
|
||||
@@ -37,6 +45,7 @@ fn search_results(
|
||||
count: usize,
|
||||
pager: &FrontPageQuerySearchPageInfo,
|
||||
selected_threads: &HashSet<String>,
|
||||
show_icon_text: bool,
|
||||
) -> Node<Msg> {
|
||||
if query.is_empty() {
|
||||
set_title("all mail");
|
||||
@@ -96,8 +105,8 @@ fn search_results(
|
||||
let show_bulk_edit = !selected_threads.is_empty();
|
||||
div![
|
||||
C!["search-results"],
|
||||
search_toolbar(count, pager, show_bulk_edit),
|
||||
search_toolbar(count, pager, show_bulk_edit, show_icon_text),
|
||||
div![C!["index"], rows],
|
||||
search_toolbar(count, pager, show_bulk_edit),
|
||||
search_toolbar(count, pager, show_bulk_edit, show_icon_text),
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user