feat(web): compressable results for text search too

This commit is contained in:
əlemi 2024-08-11 15:23:21 +02:00
parent 01de917bdb
commit a4e807fc3b
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -45,7 +45,7 @@ pub fn SearchPage() -> impl IntoView {
<blockquote class="mt-3 mb-3"> <blockquote class="mt-3 mb-3">
<details open> <details open>
<summary class="mb-2"> <summary class="mb-2">
<code class="cw center color ml-s w-100">users</code> <code class="cw center color ml-s w-100">actor</code>
</summary> </summary>
<div class="pb-1"> <div class="pb-1">
{move || match user.get() { {move || match user.get() {
@ -60,7 +60,7 @@ pub fn SearchPage() -> impl IntoView {
<blockquote class="mt-3 mb-3"> <blockquote class="mt-3 mb-3">
<details open> <details open>
<summary class="mb-2"> <summary class="mb-2">
<code class="cw center color ml-s w-100">objects</code> <code class="cw center color ml-s w-100">object</code>
</summary> </summary>
<div class="pb-1"> <div class="pb-1">
{move || match object.get() { {move || match object.get() {
@ -72,6 +72,12 @@ pub fn SearchPage() -> impl IntoView {
</details> </details>
</blockquote> </blockquote>
<blockquote class="mt-3 mb-3">
<details open>
<summary class="mb-2">
<code class="cw center color ml-s w-100">full text</code>
</summary>
<div class="pb-1">
{move || match text_search.get() { {move || match text_search.get() {
None => Some(view! { <p class="center"><small>searching...</small></p> }.into_view()), None => Some(view! { <p class="center"><small>searching...</small></p> }.into_view()),
Some(None) => None, Some(None) => None,
@ -91,5 +97,8 @@ pub fn SearchPage() -> impl IntoView {
/ > / >
}.into_view()) }.into_view())
}} }}
</div>
</details>
</blockquote>
} }
} }