From 658764fb589e9e01623db7bc213ca9ab9e417ae0 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Mon, 7 Apr 2025 01:38:14 +0200 Subject: [PATCH] Prevent UI overlaps in lodging card This patch prevents overlapping UI eelements in the ledging card. It adjusts the UI to be more like the adventure cards when it comes to font size and element placing. This partly fixes #539 --- .../src/lib/components/LodgingCard.svelte | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/frontend/src/lib/components/LodgingCard.svelte b/frontend/src/lib/components/LodgingCard.svelte index a7bd34c..bb7b6db 100644 --- a/frontend/src/lib/components/LodgingCard.svelte +++ b/frontend/src/lib/components/LodgingCard.svelte @@ -96,20 +96,15 @@ >
-
-

{lodging.name}

-
-
- {$t(`lodging.${lodging.type}`) + ' ' + getLodgingIcon(lodging.type)} -
- +

{lodging.name}

+
+
+ {$t(`lodging.${lodging.type}`) + ' ' + getLodgingIcon(lodging.type)}
+ {#if unlinked} +
{$t('adventures.out_of_range')}
+ {/if}
- {#if unlinked} -
{$t('adventures.out_of_range')}
- {/if}