Quellcode durchsuchen

undue footer change for bootstrap 3, switch to dvh heights, deal with small screens

El RIDO vor 1 Jahr
Ursprung
Commit
cc16dd0165
4 geänderte Dateien mit 16 neuen und 4 gelöschten Zeilen
  1. 1 1
      CHANGELOG.md
  2. 7 1
      css/bootstrap/privatebin.css
  3. 7 1
      css/bootstrap5/privatebin.css
  4. 1 1
      tpl/bootstrap.php

+ 1 - 1
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

+ 7 - 1
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 {

+ 7 - 1
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 {

+ 1 - 1
tpl/bootstrap.php

@@ -592,7 +592,7 @@ endif;
 					<span class="small"><?php echo I18n::_('In case this message never disappears please have a look at <a href="%s">this FAQ for information to troubleshoot</a>.', 'https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-the-loading-message-not-go-away'); ?></span>
 				</div>
 			</section>
-			<footer class="container navbar-fixed-bottom">
+			<footer class="container">
 				<div class="row">
 					<h4 class="col-md-5 col-xs-8"><?php echo I18n::_($NAME); ?> <small>- <?php echo I18n::_('Because ignorance is bliss'); ?></small></h4>
 					<p class="col-md-1 col-xs-4 text-center"><?php echo $VERSION; ?></p>