Skip to content

Commit 036d314

Browse files
authored
fix(web): Make Manage location utility header responsive (#21480)
* fix(web): Make Manage location utility header responsive * Consolidate <p> into <Text>
1 parent 1fc5da3 commit 036d314

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@
17351735
"select_user_for_sharing_page_err_album": "Failed to create album",
17361736
"selected": "Selected",
17371737
"selected_count": "{count, plural, other {# selected}}",
1738-
"selected_gps_coordinates": "selected gps coordinates",
1738+
"selected_gps_coordinates": "Selected GPS Coordinates",
17391739
"send_message": "Send message",
17401740
"send_welcome_email": "Send welcome email",
17411741
"server_endpoint": "Server Endpoint",

web/src/routes/(user)/utilities/geolocation/+page.svelte

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@
228228
<Text class="hidden md:block text-xs mr-4 text-dark/50">{$t('geolocation_instruction_location')}</Text>
229229
{/if}
230230
<div class="border flex place-items-center place-content-center px-2 py-1 bg-primary/10 rounded-2xl">
231-
<p class="text-xs text-gray-500 font-mono mr-5 ml-2 uppercase">{$t('selected_gps_coordinates')}</p>
231+
<Text class="hidden md:inline-block text-xs text-gray-500 font-mono mr-5 ml-2 uppercase">
232+
{$t('selected_gps_coordinates')}
233+
</Text>
232234
<Text
233235
title="latitude, longitude"
234236
class="rounded-3xl font-mono text-sm text-primary px-2 py-1 transition-all duration-100 ease-in-out {locationUpdated
@@ -237,17 +239,19 @@
237239
>
238240
</div>
239241

240-
<Button size="small" color="secondary" variant="ghost" leadingIcon={mdiPencilOutline} onclick={handlePickOnMap}
241-
>{$t('location_picker_choose_on_map')}</Button
242-
>
242+
<Button size="small" color="secondary" variant="ghost" leadingIcon={mdiPencilOutline} onclick={handlePickOnMap}>
243+
<Text class="hidden sm:inline-block">{$t('location_picker_choose_on_map')}</Text>
244+
</Button>
243245
<Button
244246
leadingIcon={mdiMapMarkerMultipleOutline}
245247
size="small"
246248
color="primary"
247249
disabled={assetInteraction.selectedAssets.length === 0}
248250
onclick={() => handleUpdate()}
249251
>
250-
{$t('apply_count', { values: { count: assetInteraction.selectedAssets.length } })}
252+
<Text class="hidden sm:inline-block">
253+
{$t('apply_count', { values: { count: assetInteraction.selectedAssets.length } })}
254+
</Text>
251255
</Button>
252256
</div>
253257
{/snippet}

0 commit comments

Comments
 (0)