From 3d2b9b92a46eaa2e487b2bf8e6c3f7a36d820151 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 8 Jul 2023 23:34:10 +1000 Subject: [PATCH] Fix trips page --- app/templates/trips/index.html.slim | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/templates/trips/index.html.slim b/app/templates/trips/index.html.slim index 3bee3d5..d874554 100644 --- a/app/templates/trips/index.html.slim +++ b/app/templates/trips/index.html.slim @@ -4,21 +4,20 @@ div class="mb-4 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:t h1 🛫 Trips div class="mb-12 max-w-prose mx-auto" - table class="prose dark:prose-invert table-auto" + table class="prose dark:prose-invert table-fixed" - trip_years.each do |year, trips| thead - tr colspan=3 + tr colspan=2 td class="text-xl" = year - trips.each do |trip| tr td - a href="/trips/#{trip.id}" + a class="block" href="/trips/#{trip.id}" = trip.name + span class="text-right text-sm text-gray-400 dark:text-gray-600 break-normal" + = "#{trip.start_date.strftime("%d %b")} — #{trip.end_date.strftime("%d %b")}" td = trip.subtitle - td class="text-right text-gray-400 dark:text-gray-600 break-normal" - = "#{trip.start_date.strftime("%m %b")}" - == " → " - = "#{trip.end_date.strftime("%m %b")}" + div class="max-w-screen-md mx-auto border-t-4 border-solid border-gray-400 dark:border-gray-600"