Просмотр исходного кода

Fixes margin problem when breadcrumbs are not shown.

Alan Lam 8 лет назад
Родитель
Сommit
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