From 7eb414190a169874a520ecc4c5755b5b52800746 Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Sun, 10 Jan 2021 21:35:14 +0000 Subject: [PATCH] Display banner images a bit nicer --- src/View/Account.elm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/View/Account.elm b/src/View/Account.elm index 29edd77..031d277 100644 --- a/src/View/Account.elm +++ b/src/View/Account.elm @@ -251,7 +251,9 @@ accountView subView currentUser accountInfo = , div [ id "account", class "timeline" ] [ div [ class "account-detail" - , style [ ( "background-image", "url('" ++ account.header ++ "')" ) ] + , style [ ( "background-image", "url('" ++ account.header ++ "')" ), + ( "background-position", "center" ), + ( "background-size", "cover" ) ] ] [ div [ class "opacity-layer" ] [ followButton currentUser accountInfo.relationship account