Skip to content

Commit

Permalink
Troubleshoot Page: Take fix header into account
Browse files Browse the repository at this point in the history
This patch isn't perfect, but makes it more likely that
it will scroll to the correct location.
  • Loading branch information
ghormann committed Jun 26, 2021
1 parent 8bfba3c commit 37f3cad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion www/css/fpp.css
Expand Up @@ -2409,4 +2409,18 @@ body, #footer{
column-count: 4;
}

}
}

a.troubleshoot-anchor {
display: block;
position: relative;
top: -20px;
visibility: hidden;
}

@media(min-width:991px){
a.troubleshoot-anchor {
top: -50px;
}

}
2 changes: 1 addition & 1 deletion www/troubleshooting.php
Expand Up @@ -37,7 +37,7 @@
$hotLinks .= "<li><a href=\"#$header\">$title</a></li>";
$jsArray[$key] = $title;
?>
<a name="<? echo $header ?>"><h3><? echo $title . ':&nbsp;&nbsp;&nbsp;&nbsp;' . $command; ?></h3></a>
<a class="troubleshoot-anchor" name="<? echo $header ?>">.</a><h3><? echo $title . ':&nbsp;&nbsp;&nbsp;&nbsp;' . $command; ?></h3>
<pre id="<? echo $key ?>"><i>Loading...</i></pre>
<hr>
<?
Expand Down

0 comments on commit 37f3cad

Please sign in to comment.