Skip to content

Commit

Permalink
Added class .menu-scroll for optimize displaying large number of host…
Browse files Browse the repository at this point in the history
…groups
  • Loading branch information
zbxwallboard committed Oct 26, 2018
1 parent 4202cab commit da47411
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Wallboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function gen_menu($HOSTGROUPS,$SEVERITIES) {
$MENU .= "<a href='' class='dropdown-toggle'>Hostgroups</a>";
}

$MENU .= "<ul class='d-menu' data-role='dropdown'>";
$MENU .= "<ul class='d-menu menu-scroll' data-role='dropdown'>";
$MENU .= "<li><a href='" . $this->gen_script_path(array('groupid'=>array('all'))) . "'>&nbsp;&nbsp;All</a></li>";
$MENU .= "<hr />";

Expand Down
7 changes: 7 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ body {
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
}

.menu-scroll {
overflow:auto;
overflow-x: hidden;
height:auto;
max-height:75vh;
}

0 comments on commit da47411

Please sign in to comment.