Skip to content

Commit d61ee77

Browse files
committed
Fix dynamic bottom padding
1 parent a2a96ec commit d61ee77

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/components/StationMenu.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { currentPos } from '$lib/location';
77
import { selectedStation, stations } from '$lib/map.svelte';
88
import { t } from '$lib/translations';
9-
import { enqueueDialog, errorMessages } from '$lib/ui.svelte';
9+
import { enqueueDialog, errorMessages, safeInsets } from '$lib/ui.svelte';
1010
import { distanceBetweenCoords, formatDistance, getCssVariable } from '$lib/utils';
1111
import { IconX } from '@tabler/icons-svelte';
1212
import Search from '@tabler/icons-svelte/icons/search';
@@ -271,7 +271,7 @@
271271
</div>
272272
</div>
273273
<div class="overflow-y-auto transition-all" style:height="calc(min(50vh,{bikeListHeight}px))" onscroll={() => isScrolling = true} ontouchend={() => isScrolling = false}>
274-
<div bind:this={bikeList} class="flex flex-col p-5 pt-2 gap-3">
274+
<div bind:this={bikeList} class="flex flex-col p-5 pt-2 gap-3" style:padding-bottom={$safeInsets.bottom + 'px'}>
275275
{#if bikeInfo.length == 0}
276276
{#each new Array(bikes) as _}
277277
<BikeSkeleton />

0 commit comments

Comments
 (0)