mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
chore(ngdocs): fix docs search to properly hide the X button when collapsed
This commit is contained in:
parent
e31104fa6c
commit
658bcf96b9
2 changed files with 6 additions and 2 deletions
|
|
@ -268,6 +268,10 @@ ul.events > li > h3 {
|
|||
width:100%;
|
||||
}
|
||||
|
||||
.search-results.ng-hide {
|
||||
display:none;
|
||||
}
|
||||
|
||||
.search-results > .search-group {
|
||||
vertical-align:top;
|
||||
padding:10px 0;
|
||||
|
|
@ -484,4 +488,4 @@ pre ol li {
|
|||
font-size: 16px;
|
||||
word-break: normal;
|
||||
word-wrap: normal;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,8 +79,8 @@ docsApp.controller.DocsNavigationCtrl = ['$scope', '$location', 'docsSearch', fu
|
|||
}
|
||||
if(totalSections > 0) {
|
||||
$scope.colClassName = 'cols-' + totalSections;
|
||||
$scope.hasResults = true;
|
||||
}
|
||||
$scope.hasResults = totalSections > 0;
|
||||
$scope.results = results;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue