Make more mobile-friendly
All checks were successful
Build and deploy updated apps / Build & deploy (push) Successful in 1m51s

This commit is contained in:
Dominik Milacher 2025-10-15 10:33:35 +02:00
parent f6e88469b3
commit d2f3146e03
2 changed files with 16 additions and 2 deletions

View File

@ -15,7 +15,21 @@
<!-- nav links -->
<ul class="flex space-x-6">
<li>
<NuxtLink :to="p('apartments')">{{ c.header.apartments }}</NuxtLink>
<!-- Mobile: Show only first word -->
<NuxtLink
:to="p('apartments')"
class="block sm:hidden"
>
{{ c.header.apartments.split(' ')[0] }}
</NuxtLink>
<!-- Desktop: Show full text -->
<NuxtLink
:to="p('apartments')"
class="hidden sm:block"
>
{{ c.header.apartments }}
</NuxtLink>
</li>
<li>
<NuxtLink :to="p('book')">{{ c.header.book }}</NuxtLink>

View File

@ -31,7 +31,7 @@
}}
</p>
</div>
<div class="mt-8 flex gap-4">
<div class="mt-8 flex gap-4 flex-wrap">
<UButton :to="p('apartments')" color="primary" variant="solid" size="xl"
trailing-icon="i-heroicons-arrow-right">{{ c.button.apartments }}
</UButton>