Dropdown/popup for search and add widget are size constrained with scrollers.

This commit is contained in:
Herbert Wolverson 2024-07-17 10:52:08 -05:00
parent d543d361d9
commit 6359118147
2 changed files with 8 additions and 2 deletions

View File

@ -161,7 +161,7 @@ export class Dashboard {
listBtn.innerHTML = "<i class='fa fa-plus'></i> Add Widget";
list.appendChild(listBtn);
let listUl = document.createElement("ul");
listUl.classList.add("dropdown-menu");
listUl.classList.add("dropdown-menu", "dropdown-menu-sized");
DashletMenu.forEach((d) => {
let entry = document.createElement("li");
let item = document.createElement("a");

View File

@ -117,5 +117,11 @@ body.dark-mode {
z-index: 1000;
visibility: hidden;
transform: translateX(5%);
max-height: 50%;
overflow: auto;
}
.invalid { background-color: red }
.invalid { background-color: red }
.dropdown-menu-sized {
max-height: 200px;
overflow-y: auto;
}