Explorar el Código

Fixes margin problem when breadcrumbs are not shown.

Alan Lam hace 8 años
padre
commit
603ce0c04e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      views/header.php

+ 2 - 1
views/header.php

@@ -91,8 +91,9 @@ if(!PRODUCTION) {
 		}
 
 		if(!PRODUCTION) {
+			$style = (count(Core::$breadcrumbs) > 1) ? "margin-top: -1rem;" : "";
 			?>
-			<div class="p-2 bg-danger text-white text-center" style="margin-top: -1rem;">
+			<div class="p-2 bg-danger text-white text-center" style="<?=$style?>">
 				<strong>PLEASE NOTE:</strong> This is a development version of the site.
 			</div>
 			<?php