From ea85c5fc5ad0daba13b3509594439c0622759a73 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Fri, 18 Apr 2025 00:22:50 +0200 Subject: [PATCH] Prevent UI overlaps in transportation card Similar to #552 (658764f) the card title and badges of the transportation card can overlap. This patch adjusts the transportation card to list the badges below the title similar to the other cards. --- .../lib/components/TransportationCard.svelte | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/frontend/src/lib/components/TransportationCard.svelte b/frontend/src/lib/components/TransportationCard.svelte index 8b384e9..c97bd85 100644 --- a/frontend/src/lib/components/TransportationCard.svelte +++ b/frontend/src/lib/components/TransportationCard.svelte @@ -110,22 +110,20 @@ >
-
-

{transportation.name}

-
-
- {$t(`transportation.modes.${transportation.type}`) + - ' ' + - getTransportationIcon(transportation.type)} -
- {#if transportation.type == 'plane' && transportation.flight_number} -
{transportation.flight_number}
- {/if} +

{transportation.name}

+
+
+ {$t(`transportation.modes.${transportation.type}`) + + ' ' + + getTransportationIcon(transportation.type)}
+ {#if transportation.type == 'plane' && transportation.flight_number} +
{transportation.flight_number}
+ {/if} + {#if unlinked} +
{$t('adventures.out_of_range')}
+ {/if}
- {#if unlinked} -
{$t('adventures.out_of_range')}
- {/if}