Explorar o código

Fixes margin problem when breadcrumbs are not shown.

Alan Lam %!s(int64=8) %!d(string=hai) anos
pai
achega
603ce0c04e
Modificáronse 1 ficheiros con 2 adicións e 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