From 43471d162fb4f7728a59209b13f1b52892395969 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Mon, 26 Feb 2024 11:01:20 -0800 Subject: [PATCH] web: make empty subject line clickable --- web/index.html | 15 +++++++++++++++ web/src/view/mod.rs | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/web/index.html b/web/index.html index 689a454..e110993 100644 --- a/web/index.html +++ b/web/index.html @@ -196,6 +196,7 @@ .search-results .row .summary { min-width: 0; + width: 100%; } .search-results .row .subject { @@ -204,6 +205,20 @@ white-space: nowrap; } + .search-results .subject { + display: flex; + } + + .search-results .subject .tag {} + + .search-results .subject .text { + padding-left: 0.5rem; + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + .search-results .row .from { overflow: hidden; text-overflow: ellipsis; diff --git a/web/src/view/mod.rs b/web/src/view/mod.rs index c7eb00e..1ae881c 100644 --- a/web/src/view/mod.rs +++ b/web/src/view/mod.rs @@ -171,7 +171,7 @@ fn view_search_results( tags_chiclet(&tags, false), " ", a![ - C!["has-text-light"], + C!["has-text-light", "text"], attrs! { At::Href => urls::thread(&tid) }, @@ -183,6 +183,7 @@ fn view_search_results( }); div![ + C!["search-results"], search_toolbar(count, pager, show_bulk_edit), table![ C![