From cc16dd0165fe7207e968569536c10c6d14bc21b6 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 15 Sep 2024 10:57:42 +0200 Subject: [PATCH] undue footer change for bootstrap 3, switch to dvh heights, deal with small screens --- CHANGELOG.md | 2 +- css/bootstrap/privatebin.css | 8 +++++++- css/bootstrap5/privatebin.css | 8 +++++++- tpl/bootstrap.php | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e792c73b..9a1fe6e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 1.7.5 (not yet released) * ADDED: Allow non persistent SQL connections, if configured (#1394) -* CHANGED: Tweaked page footer of the `bootstrap` & `bootstrap5` templates (#1392) +* CHANGED: Tweaked page footer of the `bootstrap5` template (#1392) * CHANGED: Simpler PostgreSQL table lookup query (#1361) * CHANGED: SRI hashes are now configurable, no longer hardcoded in templates (#1365) * CHANGED: Upgrading libraries to: DOMpurify 3.1.6 diff --git a/css/bootstrap/privatebin.css b/css/bootstrap/privatebin.css index c8073323..74ea788a 100644 --- a/css/bootstrap/privatebin.css +++ b/css/bootstrap/privatebin.css @@ -88,7 +88,13 @@ body.loading { } #message { - height: 70vh; + height: 70dvh; +} + +@media ((max-width: 450px) and (max-height: 950px)) { + #message { + height: 55dvh; + } } #message, .replymessage { diff --git a/css/bootstrap5/privatebin.css b/css/bootstrap5/privatebin.css index 66621b93..f486869d 100644 --- a/css/bootstrap5/privatebin.css +++ b/css/bootstrap5/privatebin.css @@ -33,7 +33,13 @@ } #message { - height: 70vh; + height: 70dvh; +} + +@media ((max-width: 450px) and (max-height: 950px)) { + #message { + height: 55dvh; + } } #message, .replymessage { diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index f0790d38..901bced7 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -592,7 +592,7 @@ endif; this FAQ for information to troubleshoot.', 'https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-the-loading-message-not-go-away'); ?> -