feat(web): compressable results for text search too
This commit is contained in:
parent
01de917bdb
commit
a4e807fc3b
1 changed files with 30 additions and 21 deletions
|
@ -45,7 +45,7 @@ pub fn SearchPage() -> impl IntoView {
|
|||
<blockquote class="mt-3 mb-3">
|
||||
<details open>
|
||||
<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>
|
||||
<div class="pb-1">
|
||||
{move || match user.get() {
|
||||
|
@ -60,7 +60,7 @@ pub fn SearchPage() -> impl IntoView {
|
|||
<blockquote class="mt-3 mb-3">
|
||||
<details open>
|
||||
<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>
|
||||
<div class="pb-1">
|
||||
{move || match object.get() {
|
||||
|
@ -72,6 +72,12 @@ pub fn SearchPage() -> impl IntoView {
|
|||
</details>
|
||||
</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() {
|
||||
None => Some(view! { <p class="center"><small>searching...</small></p> }.into_view()),
|
||||
Some(None) => None,
|
||||
|
@ -91,5 +97,8 @@ pub fn SearchPage() -> impl IntoView {
|
|||
/ >
|
||||
}.into_view())
|
||||
}}
|
||||
</div>
|
||||
</details>
|
||||
</blockquote>
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue