Fix ul nesting. Add navbar-nav to collapsed nav elements to fix spacing.

This commit is contained in:
Isaac Connor 2021-01-12 14:29:53 -05:00
parent 0a9681636f
commit 81acf4bf69
1 changed files with 26 additions and 27 deletions

View File

@ -302,7 +302,6 @@ function getCollapsedNavBarHTML($running, $user, $bandwidth_options, $view, $ski
</div>
<nav class="navbar navbar-expand-md align-self-start px-0">
<ul class="nav navbar-nav list-group px-0">
<?php
// *** Build the statistics shown on the navigation bar ***
@ -310,14 +309,15 @@ function getCollapsedNavBarHTML($running, $user, $bandwidth_options, $view, $ski
?>
<div id="reload" class="collapse navbar-collapse px-0">
<ul id="Version" class="pr-2">
<ul id="Version" class="pr-2 navbar-nav">
<?php echo getZMVersionHTML() ?>
</ul>
<ul id="Bandwidth" class="px-2">
<ul id="Bandwidth" class="px-2 navbar-nav">
<?php echo getBandwidthHTML($bandwidth_options, $user) ?>
</ul>
<ul class="nav navbar-nav list-group px-0">
<?php
echo getSysLoadHTML();
echo getDbConHTML();
@ -325,9 +325,9 @@ function getCollapsedNavBarHTML($running, $user, $bandwidth_options, $view, $ski
echo getShmHTML();
echo getLogIconHTML();
?>
</ul>
</div>
<?php
} // end if (!ZM_OPT_USE_AUTH) or $user )
?>
@ -339,7 +339,6 @@ function getCollapsedNavBarHTML($running, $user, $bandwidth_options, $view, $ski
echo getStatusBtnHTML($status);
?>
</ul>
</ul>
<!-- the Navigation Bar Hamburger Button -->
<?php if ( (!ZM_OPT_USE_AUTH) or $user ) { ?>
@ -734,7 +733,7 @@ function getAccountCircleHTML($skin, $user=null) {
$result = '';
if ( ZM_OPT_USE_AUTH and $user ) {
$result .= '<p id="getAccountCircleHTML" class="navbar-text mr-2">'.PHP_EOL;
$result .= '<p id="getAccountCircleHTML" class="navbar-text navbar-nav mr-2">'.PHP_EOL;
$result .= makeLink('#', '<i class="material-icons">account_circle</i> '. $user['Username'],
(ZM_AUTH_TYPE == 'builtin'), 'id="logoutButton" data-toggle="modal" data-target="#modalLogout" data-backdrop="false"' ).PHP_EOL;
$result .= '</p>'.PHP_EOL;