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
commit6a31382e1f2c040af45e91dfaabc3c1d7d44a8b4 (patch)
tree057a21d96046fc546f5046a543871c1939435225 /src/components
parent606296feab36895a19482a8749c0c018b5c12f84 (diff)
downloadcoinos-ui-6a31382e1f2c040af45e91dfaabc3c1d7d44a8b4.tar.gz
coinos-ui-6a31382e1f2c040af45e91dfaabc3c1d7d44a8b4.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}>