From 3e6ffccc3d16618062d3e2426c1fbada5877e854 Mon Sep 17 00:00:00 2001
From: memdmp <memdmp@estrogen.zone>
Date: Thu, 24 Jul 2025 12:56:32 +0000
Subject: fix: awawa things

---
 src/lib/Timetable.svelte | 130 +++++++++++++++++++++++++++--------------------
 1 file changed, 75 insertions(+), 55 deletions(-)

(limited to 'src/lib/Timetable.svelte')

diff --git a/src/lib/Timetable.svelte b/src/lib/Timetable.svelte
index 96e0c03..22f9139 100644
--- a/src/lib/Timetable.svelte
+++ b/src/lib/Timetable.svelte
@@ -372,7 +372,7 @@
   {/each}
 {:else}
   <div class="flex items-center justify-center">
-    <div class="results">
+    <div class="results max-w-2xl">
       {#if (placeName || placeId) && isResultsPage}
         <h2 class="text-2xl opacity-90">{m.no_results_title()}</h2>
         <p>
@@ -389,60 +389,80 @@
         <p class="pb-1">
           {m.welcome_body_1()}
         </p>
-        <p class="py-1">
-          <span class="pt-2 flex flex-wrap gap-2 max-w-xl">
-            <button
-              class="{S.button('secondary').replace(
-                'not-disabled:bg-[#0000]',
-                'not-disabled:bg-[#2E2E3299]'
-              )} flex-1 text-nowrap p-3 w-max min-w-20"
-              onclick={() => setSearch('Zürich HB')}>Zürich HB</button
-            >
-            <button
-              class="{S.button('secondary').replace(
-                'not-disabled:bg-[#0000]',
-                'not-disabled:bg-[#2E2E3299]'
-              )} flex-1 text-nowrap p-3 w-max min-w-20"
-              onclick={() => setSearch('Bielefeld Hbf')}>Bielefeld Hbf</button
-            >
-            <button
-              class="{S.button('secondary').replace(
-                'not-disabled:bg-[#0000]',
-                'not-disabled:bg-[#2E2E3299]'
-              )} flex-1 text-nowrap p-3 w-max min-w-20"
-              onclick={() => setSearch('Berlin Hbf')}>Berlin Hbf</button
-            >
-            <button
-              class="{S.button('secondary').replace(
-                'not-disabled:bg-[#0000]',
-                'not-disabled:bg-[#2E2E3299]'
-              )} flex-1 text-nowrap p-3 w-max min-w-20"
-              onclick={() => setSearch('Hamburg Hbf')}>Hamburg Hbf</button
-            >
-            <button
-              class="{S.button('secondary').replace(
-                'not-disabled:bg-[#0000]',
-                'not-disabled:bg-[#2E2E3299]'
-              )} flex-1 text-nowrap p-3 w-max min-w-20"
-              onclick={() => setSearch('Bern')}>Bern</button
-            >
-            <button
-              class="{S.button('secondary').replace(
-                'not-disabled:bg-[#0000]',
-                'not-disabled:bg-[#2E2E3299]'
-              )} flex-1 text-nowrap p-3 w-max min-w-20"
-              onclick={() => setSearch('Basel SBB')}>Basel SBB</button
-            >
-            <button
-              class="{S.button('secondary').replace(
-                'not-disabled:bg-[#0000]',
-                'not-disabled:bg-[#2E2E3299]'
-              )} flex-1 text-nowrap p-3 w-max min-w-20"
-              onclick={() => setSearch('Genève-Aéroport')}
-              >Genève-Aéroport</button
-            >
-          </span>
-        </p>
+        <div
+          class="pb-1 pt-3 flex flex-wrap gap-2 w-full max-w-2xl justify-center"
+        >
+          <button
+            class="{S.button('secondary').replace(
+              'not-disabled:bg-[#0000]',
+              'not-disabled:bg-[#2E2E3299]'
+            )} flex-1 text-nowrap p-3 min-w-max"
+            onclick={() => setSearch('Zürich HB')}>Zürich HB</button
+          >
+          <button
+            class="{S.button('secondary').replace(
+              'not-disabled:bg-[#0000]',
+              'not-disabled:bg-[#2E2E3299]'
+            )} flex-1 text-nowrap p-3 min-w-max"
+            onclick={() => setSearch('Bielefeld Hbf')}>Bielefeld Hbf</button
+          >
+          <button
+            class="{S.button('secondary').replace(
+              'not-disabled:bg-[#0000]',
+              'not-disabled:bg-[#2E2E3299]'
+            )} flex-1 text-nowrap p-3 min-w-max"
+            onclick={() => setSearch('Berlin Hbf')}>Berlin Hbf</button
+          >
+          <button
+            class="{S.button('secondary').replace(
+              'not-disabled:bg-[#0000]',
+              'not-disabled:bg-[#2E2E3299]'
+            )} flex-1 text-nowrap p-3 min-w-max"
+            onclick={() => setSearch('Hamburg Hbf')}>Hamburg Hbf</button
+          >
+          <button
+            class="{S.button('secondary').replace(
+              'not-disabled:bg-[#0000]',
+              'not-disabled:bg-[#2E2E3299]'
+            )} flex-1 text-nowrap p-3 min-w-max"
+            onclick={() => setSearch('Bern')}>Bern</button
+          >
+          <button
+            class="{S.button('secondary').replace(
+              'not-disabled:bg-[#0000]',
+              'not-disabled:bg-[#2E2E3299]'
+            )} flex-1 text-nowrap p-3 min-w-max"
+            onclick={() => setSearch('Basel SBB')}>Basel SBB</button
+          >
+          <button
+            class="{S.button('secondary').replace(
+              'not-disabled:bg-[#0000]',
+              'not-disabled:bg-[#2E2E3299]'
+            )} flex-1 text-nowrap p-3 min-w-max"
+            onclick={() => setSearch('Genève-Aéroport')}>Genève-Aéroport</button
+          >
+          <button
+            class="{S.button('secondary').replace(
+              'not-disabled:bg-[#0000]',
+              'not-disabled:bg-[#2E2E3299]'
+            )} flex-1 text-nowrap p-3 min-w-max"
+            onclick={() => setSearch('Max-Weber-Platz')}>Max-Weber-Platz</button
+          >
+          <button
+            class="{S.button('secondary').replace(
+              'not-disabled:bg-[#0000]',
+              'not-disabled:bg-[#2E2E3299]'
+            )} flex-1 text-nowrap p-3 min-w-max"
+            onclick={() => setSearch('Lindau-Reutin')}>Lindau-Reutin</button
+          >
+          <button
+            class="{S.button('secondary').replace(
+              'not-disabled:bg-[#0000]',
+              'not-disabled:bg-[#2E2E3299]'
+            )} flex-1 text-nowrap p-3 min-w-max"
+            onclick={() => setSearch('Lindau-Reutin')}>Lindau-Reutin</button
+          >
+        </div>
       {/if}
     </div>
   </div>
-- 
cgit v1.2.3

