Skip to content

Commit e15b7e3

Browse files
committed
max 10 results, scroll the overflow
1 parent bd6015c commit e15b7e3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/resources/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ function initSearch() {
9191
},
9292
{
9393
name: 'elements',
94+
limit: 10,
9495
source: findMatches,
9596
display: function(element) { return element.name; },
9697
templates: {

lib/resources/styles.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,8 @@ button {
656656
right:0;
657657
left: inherit !important;
658658
width: 422px;
659+
max-height: 250px;
660+
overflow-y: auto;
659661
margin: 0;
660662
padding: 8px 0;
661663
background-color: #fff;

0 commit comments

Comments
 (0)