From feabc87c9f8f5d05e5133de12c72f61cac8e67c8 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 16 Dec 2023 12:44:19 +0700 Subject: [PATCH] fix chrome scaling issue, #616 --- tubearchivist/home/templates/home/base.html | 8 +++----- tubearchivist/static/css/style.css | 14 +++++++------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/tubearchivist/home/templates/home/base.html b/tubearchivist/home/templates/home/base.html index 40211f23..63e22865 100644 --- a/tubearchivist/home/templates/home/base.html +++ b/tubearchivist/home/templates/home/base.html @@ -33,11 +33,9 @@
-
- - tube-archivist-banner - -
+ +
+
diff --git a/tubearchivist/static/css/style.css b/tubearchivist/static/css/style.css index 5b15bf10..4856105a 100644 --- a/tubearchivist/static/css/style.css +++ b/tubearchivist/static/css/style.css @@ -159,13 +159,13 @@ button:hover { } .top-banner { - text-align: center; -} - -.top-banner img { - width: 100%; - max-width: 700px; - content: var(--banner); + background-image: var(--banner); + background-repeat: no-repeat; + background-size: contain; + height: 10vh; + min-height: 80px; + max-height: 120px; + background-position: center center; } .footer {