mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-16 18:39:51 +08:00
chore(ngdocs): fix docs search to properly hide the X button when collapsed
This commit is contained in:
committed by
Misko Hevery
parent
e31104fa6c
commit
658bcf96b9
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user