Merge pull request #1828 from ddoolin/fix-tag-suggestion-and-padding

Fixes showing tag suggestions and tag container padding
This commit is contained in:
John O'Nolan 2014-01-03 13:04:16 -08:00
commit c17271a4c4
2 changed files with 4 additions and 3 deletions

View File

@ -521,7 +521,6 @@ body.zen {
@include linear-gradient(right, rgba(26, 28, 29, 0.00), rgba(26, 28, 29, 1.00));
}
.tags {
position: relative;
display: inline-block;
@ -530,7 +529,7 @@ body.zen {
max-width: 80%;
max-width: calc(100% - 320px);
height: 26px;
padding-left: 20px;
padding-left: 8px;
padding-bottom: 20px;
overflow-x: auto;
overflow-y: hidden;

View File

@ -101,7 +101,6 @@
},
showSuggestions: function ($target, _searchTerm) {
this.$suggestions.show();
var searchTerm = _searchTerm.toLowerCase(),
matchingTags = this.findMatchingTags(searchTerm),
styles = {
@ -115,6 +114,9 @@
this.$suggestions.html("");
matchingTags = _.first(matchingTags, maxSuggestions);
if (matchingTags.length > 0) {
this.$suggestions.show();
}
_.each(matchingTags, function (matchingTag) {
var highlightedName,
suggestionHTML;