Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dropdowns a maximum height and allow them to scroll #571

Merged
merged 1 commit into from Oct 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions Theme/basic/emon.css
Expand Up @@ -93,3 +93,9 @@ input[type=text][class=variable-name-edit] {
.menu-dashboard,.menu-left,.menu-extra,.menu-setup,.menu-right {
display: inherit !important;
}

.scrollable-menu {
height: auto;
max-height: 250px;
overflow-y: auto;
}
2 changes: 1 addition & 1 deletion Theme/basic/menu_view.php
Expand Up @@ -42,7 +42,7 @@ function drawItem($item)
if ($i > 0) {
$out .= '<li class="dropdown' . ($subactive ? " active" : "") . (isset($item['class']) ? " ".$item['class'] : "") . '">';
$out .= '<a href="#" class="dropdown-toggle" data-toggle="dropdown">' . drawNameIcon($item,false) . '<b class="caret"></b></a>';
$out .= '<ul class="dropdown-menu">';
$out .= '<ul class="dropdown-menu scrollable-menu">';
$out .= $outdrop;
$out .= '</ul></li>';
}
Expand Down