From 304b5231279464f37c07005b6a79534ac6be0b05 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 31 Mar 2026 00:05:17 +0100 Subject: [PATCH] Update button style, to improve looks while adding a large enough touch-target --- src/lib/components/ui/Button.svelte | 54 +++++++++++-------- .../ui/cards/NearbyStationsCard.svelte | 12 +++-- 2 files changed, 41 insertions(+), 25 deletions(-) diff --git a/src/lib/components/ui/Button.svelte b/src/lib/components/ui/Button.svelte index e584ae6..3ecc04f 100644 --- a/src/lib/components/ui/Button.svelte +++ b/src/lib/components/ui/Button.svelte @@ -19,42 +19,54 @@ {#if isLink} - {@render children?.()} + > + {@render children?.()} + {:else} - {/if} diff --git a/src/lib/components/ui/cards/NearbyStationsCard.svelte b/src/lib/components/ui/cards/NearbyStationsCard.svelte index 602bde0..ff0c467 100644 --- a/src/lib/components/ui/cards/NearbyStationsCard.svelte +++ b/src/lib/components/ui/cards/NearbyStationsCard.svelte @@ -22,8 +22,7 @@
.card-content { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; text-align: center; width: 90%; + min-height: 98px; margin: auto; padding: 10px 0 10px 0; } @@ -46,14 +50,14 @@ .stations-flex { display: flex; flex-wrap: wrap; - gap: 0.75rem; + gap: 0.1rem 0.5rem; justify-content: center; align-items: flex-start; } .btn-container { display: block; - width: fit-content; + width: fit-content; will-change: transform; }