Skip to content

Commit 1ad4635

Browse files
committed
Fix hover behavior and improve scrolling for search box
1 parent 7d28ccf commit 1ad4635

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

css/activities.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
transition: width 0.4s ease-in-out;
6262
font-size: 24px;
6363
color: black;
64+
max-width: 100%;
6465
}
6566

6667
#search:focus {
@@ -75,6 +76,8 @@
7576
position: relative;
7677
background-color: rgba(255, 255, 255, 1);
7778
max-width: 396px;
79+
max-height: 200px;
80+
overflow-y: auto;
7881
font-size: 18px;
7982
border: 2px solid #87cefa;
8083
list-style-type: none;

js/activity.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2401,7 +2401,11 @@ class Activity {
24012401
item.label +
24022402
"</a>"
24032403
)
2404-
.appendTo(ul.css("z-index", 9999));
2404+
.appendTo(ul.css({
2405+
"z-index": 9999,
2406+
"max-height": "200px",
2407+
"overflow-y": "auto"
2408+
}));
24052409
};
24062410
const searchInput = this.searchWidget.idInput_custom;
24072411
if (!searchInput || searchInput.length <= 0) return;

0 commit comments

Comments
 (0)