From 69b6bda01b18e5825b8a31dff8b8e283772c6630 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 12 Nov 2020 11:19:30 +0000 Subject: [PATCH] Style habit screen to accommodate footer Add spacing to the bottom to make space for the footer. --- scratch/habit-screens/client/src/Habits.elm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scratch/habit-screens/client/src/Habits.elm b/scratch/habit-screens/client/src/Habits.elm index c1959e818..bbd5887f8 100644 --- a/scratch/habit-screens/client/src/Habits.elm +++ b/scratch/habit-screens/client/src/Habits.elm @@ -282,7 +282,7 @@ render { today, visibleDayOfWeek, completed, includeMorning, includeEvening } = in div [ Utils.class - [ Always "container mx-auto py-6 px-6" + [ Always "max-w-xl mx-auto py-6 px-6" , When (todaysWeekday /= visibleWeekday) "pt-20" ] ] @@ -411,7 +411,7 @@ render { today, visibleDayOfWeek, completed, includeMorning, includeEvening } = else text "" - , ul [] + , ul [ class "pb-10" ] (habits |> List.indexedMap (\i { label, minutesDuration } -> @@ -455,7 +455,7 @@ render { today, visibleDayOfWeek, completed, includeMorning, includeEvening } = ] ) ) - , footer [ class "text-sm text-center text-gray-500 fixed bottom-0 left-0 w-full py-4" ] + , footer [ class "bg-white text-sm text-center text-gray-500 fixed bottom-0 left-0 w-full py-4" ] [ p [] [ text "This app is brought to you by William Carroll." ] , p [] [ text "Client: Elm; Server: n/a" ] ]