From 02976ee4d5ef71c6708a9610f8bad3b747d6454c Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Wed, 11 Jan 2023 22:46:34 -0500 Subject: [PATCH] Consolidate footers --- www/src/Pages/Collection.elm | 11 +---------- www/src/UI.elm | 1 + 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/www/src/Pages/Collection.elm b/www/src/Pages/Collection.elm index 6ce6438..57944ce 100644 --- a/www/src/Pages/Collection.elm +++ b/www/src/Pages/Collection.elm @@ -579,16 +579,7 @@ view model = ] [ searchBar model , viewCardBrowser model - , E.el - [ E.height (E.px 50) - , E.width E.fill - , E.clipX - , E.padding 10 - , Font.color UI.colors.text - , Background.color UI.colors.navBar - , E.alignBottom - ] - <| + , UI.footer <| case model.collectionStatistics of Just statistics -> E.el [ E.centerY, Font.size 16, Font.italic ] <| diff --git a/www/src/UI.elm b/www/src/UI.elm index 2de5907..109bfa0 100644 --- a/www/src/UI.elm +++ b/www/src/UI.elm @@ -307,6 +307,7 @@ footer element = E.el [ E.height (E.px 50) , E.width E.fill + , E.clipX , E.padding 10 , Font.color colors.text , Background.color colors.navBar