diff --git a/frontend/src/lib/components/Tabs.svelte b/frontend/src/lib/components/Tabs.svelte index 09d0ef2..50a03af 100644 --- a/frontend/src/lib/components/Tabs.svelte +++ b/frontend/src/lib/components/Tabs.svelte @@ -4,9 +4,11 @@ import MapTab from './tabs/MapTab.svelte'; import { createEventDispatcher, onMount } from 'svelte'; + export let route: App.Route; const dispatch = createEventDispatcher(); - let ref; + let props; + let ref: HTMLDivElement; let component = InfoTab; onMount(() => { const gbcr = ref.getBoundingClientRect(); @@ -35,7 +37,7 @@ break; } - dispatch('map-click', {component}); + dispatch('map-click', { component }); }; @@ -48,7 +50,7 @@
- +
@@ -76,12 +78,12 @@ padding: 15px; border-bottom: 1px solid #eee; cursor: pointer; - } .tab { padding: 10px; background-color: white; + overflow-y: scroll; } .active { diff --git a/frontend/src/lib/components/tabs/DescTab.svelte b/frontend/src/lib/components/tabs/DescTab.svelte index 0d305b7..3248e63 100644 --- a/frontend/src/lib/components/tabs/DescTab.svelte +++ b/frontend/src/lib/components/tabs/DescTab.svelte @@ -1,14 +1,11 @@ -
- The standard Lorem Ipsum passage, used since the 1500s "Lorem ipsum dolor sit amet, consectetur - adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad - minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla - pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt - mollit anim id est laborum." + {route.description_it}