Skip to content

Commit

Permalink
More fixes and TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
isker committed Oct 8, 2023
1 parent 5d292ae commit 6a39b22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/routes/(search-page)/search-form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
</script>

<!-- TODO more clearly indicate in the UI when a search query API request is in progress -->
<!-- TODO explore JS-disabled compat. Should actually be pretty doable with `action="/"`? -->
<form
on:submit|preventDefault={() => {
if ($searchType === "manual") {
Expand Down Expand Up @@ -155,7 +156,8 @@
</label>
</div>

<!-- FIXME this shifts the entire page contents down when it's visible, we should have a buffer. -->
{#if queryError !== null}
<span class="text-sm text-red-500">{queryError}</span>
<span class="text-xs text-red-500">{queryError}</span>
{/if}
</form>
5 changes: 1 addition & 4 deletions src/routes/(search-page)/search-results.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
>
(truncated)
</span>
{/if}
/
{Math.floor(duration / 1e4) / 1e2}
ms
{/if} / {Math.floor(duration / 1e4) / 1e2}ms
</span>
<span class="ml-auto">
neogrok: <span class:text-yellow-700={filesLimited}
Expand Down

0 comments on commit 6a39b22

Please sign in to comment.