Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

143 ui improvements #94

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions public/javascripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ function populateTypeahead(element, source, displayFun, suggestionFun, updateVal
element.typeahead({
hint: true,
highlight: true,
minLength: 0
minLength: 2
sherzinger marked this conversation as resolved.
Show resolved Hide resolved
}, {
source: source,
display: displayFun,
templates: {
suggestion: suggestionFun
},
limit: 25
limit: 100
});

element.on("focus", function () {
Expand Down
5 changes: 3 additions & 2 deletions public/stylesheets/typeahead.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@

.tt-menu {
width: 300px;
max-height: 155px;
overflow-y: auto;
margin: 12px 0;
padding: 8px 0;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
Expand Down Expand Up @@ -65,4 +66,4 @@

.tt-suggestion p {
margin: 0;
}
}