From 1a51c0973dcd92bed25eaba5d055881e0715c3a3 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Thu, 12 Sep 2024 07:50:52 +0200 Subject: [PATCH 1/3] bootstrap improvements, fixes #1392 - remove unused styles (no IDs called preview or comments) - replace margins & paddings with bootstrap utility classes - apply min body height to placeholder, plaintext & prettymessage, to move footer to end of viewport --- CHANGELOG.md | 1 + css/bootstrap/privatebin.css | 8 ++------ css/bootstrap5/privatebin.css | 15 +-------------- tpl/bootstrap5.php | 6 +++--- 4 files changed, 7 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45316680..2455d1f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 1.7.5 (not yet released) * ADDED: Allow non persistent SQL connections, if configured (#1394) +* CHANGED: Various tweaks of the `bootstrap` & `bootstrap5` templates (#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 a7c0f188..84b704e8 100644 --- a/css/bootstrap/privatebin.css +++ b/css/bootstrap/privatebin.css @@ -87,8 +87,8 @@ body.loading { word-wrap: break-word; } -#preview { - margin-bottom: 10px; +#message, #placeholder, #plaintext, #prettymessage { + height: 70vh; } #message, .replymessage { @@ -100,10 +100,6 @@ body.loading { margin: 5px 0; } -#comments, #comments button { - margin-bottom: 10px; -} - .comment { border-left: 1px solid #ccc; padding: 5px 0 5px 10px; diff --git a/css/bootstrap5/privatebin.css b/css/bootstrap5/privatebin.css index b14768a1..9a726bb5 100644 --- a/css/bootstrap5/privatebin.css +++ b/css/bootstrap5/privatebin.css @@ -32,11 +32,7 @@ word-wrap: break-word; } -#preview { - margin-bottom: 10px; -} - -#message { +#message, #placeholder, #plaintext, #prettymessage { height: 70vh; } @@ -45,17 +41,8 @@ resize: vertical; } -#nickname { - margin: 5px 0; -} - -#comments, #comments button { - margin-bottom: 10px; -} - .comment { border-left: 1px solid #ccc; - padding: 5px 0 5px 10px; transition: background-color 0.75s ease-out; } diff --git a/tpl/bootstrap5.php b/tpl/bootstrap5.php index 298c1684..0f7b5708 100644 --- a/tpl/bootstrap5.php +++ b/tpl/bootstrap5.php @@ -467,7 +467,7 @@ if ($DISCUSSION) : ?>