mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
Merge pull request #1828 from ddoolin/fix-tag-suggestion-and-padding
Fixes showing tag suggestions and tag container padding
This commit is contained in:
commit
c17271a4c4
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user