Преглед изворни кода

Fixes margin problem when breadcrumbs are not shown.

Alan Lam пре 8 година
родитељ
комит
603ce0c04e
1 измењених фајлова са 2 додато и 1 уклоњено
  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