aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-26 12:18:34 -0700
committerAdam Soltys <[email protected]>2024-09-26 12:18:34 -0700
commite33dc50a2e41531bbc91a2e3e3e2dc112835dece (patch)
tree057a21d96046fc546f5046a543871c1939435225 /src/components
parente3fb230994ec4b34bed46edb6a51b7513c2965f2 (diff)
downloadcoinos-ui-e33dc50a2e41531bbc91a2e3e3e2dc112835dece.tar.gz
coinos-ui-e33dc50a2e41531bbc91a2e3e3e2dc112835dece.zip
sticky search
Diffstat (limited to 'src/components')
-rw-r--r--src/components/LocationsMap.svelte4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte
index b799d4d6..c7337f9f 100644
--- a/src/components/LocationsMap.svelte
+++ b/src/components/LocationsMap.svelte
@@ -234,8 +234,8 @@
<div
class="space-y-1 text-sm w-[300px] max-w-[calc(100vw*0.5)] min-h-[100px] max-h-[calc(100vh*0.4)] overflow-y-scroll p-4 bg-opacity-90 bg-primary absolute right-0 top-16 rounded-2xl shadow text-ellipsis"
>
- <div class="relative mb-4">
- <input bind:value={search} />
+ <div class="relative mb-4 sticky top-0 bg-primary z-10">
+ <input bind:value={search} class="w-full" />
<div class="flex gap-1 absolute right-6 top-3">
{#if search}
<button on:click={clearSearch}>