Skip to content

Commit

Permalink
fix(mapper): attempt fixing missing basemap download buttons on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Dec 9, 2024
1 parent 138e51f commit 9c96041
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/mapper/src/lib/components/offline/basemaps.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// TODO should raise an issue in hotosm/ui about this / test further
import '@shoelace-style/shoelace/dist/components/select/select.js';
import '@shoelace-style/shoelace/dist/components/option/option.js';
import '@shoelace-style/shoelace/dist/components/button/button.js';
import type { Basemap } from '$lib/utils/basemaps';
import { getProjectBasemapStore } from '$store/common.svelte.ts';
Expand Down Expand Up @@ -38,7 +39,7 @@
</div>

<!-- Basemap selector -->
<div class="flex justify-center w-full max-w-sm">
<div class="flex justify-center w-full sm:max-w-sm">
{#if basemapsAvailable}
<!-- Note here we cannot two way bind:var to the web-component,
so use event instead -->
Expand Down Expand Up @@ -79,7 +80,7 @@
role="button"
tabindex="0"
size="small"
class="secondary w-full max-w-[200px]"
class="secondary w-full sm:max-w-[200px]"
>
<hot-icon slot="prefix" name="download" class="!text-[1rem] text-[#b91c1c] cursor-pointer duration-200"
></hot-icon>
Expand All @@ -94,7 +95,7 @@
role="button"
tabindex="0"
size="small"
class="secondary w-full max-w-[200px]"
class="secondary w-full sm:max-w-[200px]"
>
<hot-icon slot="prefix" name="download" class="!text-[1rem] text-[#b91c1c] cursor-pointer duration-200"
></hot-icon>
Expand All @@ -111,7 +112,7 @@
role="button"
tabindex="0"
size="small"
class="secondary w-full max-w-[200px]"
class="secondary w-full sm:max-w-[200px]"
>
<hot-icon slot="prefix" name="download" class="!text-[1rem] text-[#b91c1c] cursor-pointer duration-200"
></hot-icon>
Expand Down

0 comments on commit 9c96041

Please sign in to comment.