From 8016c3ed77e2e8493393d8ac2c1cd01f3ea12fac Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 26 Sep 2024 16:16:59 -0700 Subject: list styles --- src/components/LocationsMap.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte index ac5a6a1c..b39f09ef 100644 --- a/src/components/LocationsMap.svelte +++ b/src/components/LocationsMap.svelte @@ -57,7 +57,7 @@ let scroll = () => { const el = document.querySelector(".selected"); - if (el) el.scrollIntoView({ behavior: "smooth", block: "center" }); + if (el) el.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" }); }; let selected; @@ -266,7 +266,7 @@
{#if !showList}
@@ -286,7 +286,7 @@ on:click={() => select(marker)} class:font-bold={selected === marker} class:selected={selected === marker} - class="block whitespace-nowrap text-ellipsis" + class="block whitespace-nowrap text-ellipsis text-left w-full overflow-hidden" > {marker.tags.name} -- cgit v1.2.3