Răsfoiți Sursa

Fixes margin problem when breadcrumbs are not shown.

Alan Lam 8 ani în urmă
părinte
comite
603ce0c04e
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      views/header.php

+ 2 - 1
views/header.php

@@ -91,8 +91,9 @@ if(!PRODUCTION) {
 		}
 		}
 
 
 		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.
 				<strong>PLEASE NOTE:</strong> This is a development version of the site.
 			</div>
 			</div>
 			<?php
 			<?php