mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-25 14:23:43 +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%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search-results.ng-hide {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
.search-results > .search-group {
|
.search-results > .search-group {
|
||||||
vertical-align:top;
|
vertical-align:top;
|
||||||
padding:10px 0;
|
padding:10px 0;
|
||||||
|
|
@ -484,4 +488,4 @@ pre ol li {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
word-wrap: normal;
|
word-wrap: normal;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,8 +79,8 @@ docsApp.controller.DocsNavigationCtrl = ['$scope', '$location', 'docsSearch', fu
|
||||||
}
|
}
|
||||||
if(totalSections > 0) {
|
if(totalSections > 0) {
|
||||||
$scope.colClassName = 'cols-' + totalSections;
|
$scope.colClassName = 'cols-' + totalSections;
|
||||||
$scope.hasResults = true;
|
|
||||||
}
|
}
|
||||||
|
$scope.hasResults = totalSections > 0;
|
||||||
$scope.results = results;
|
$scope.results = results;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue