Skip to content

Commit 658bcf9

Browse files
matskomhevery
authored andcommitted
chore(ngdocs): fix docs search to properly hide the X button when collapsed
1 parent e31104f commit 658bcf9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/src/templates/css/docs.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ ul.events > li > h3 {
268268
width:100%;
269269
}
270270

271+
.search-results.ng-hide {
272+
display:none;
273+
}
274+
271275
.search-results > .search-group {
272276
vertical-align:top;
273277
padding:10px 0;
@@ -484,4 +488,4 @@ pre ol li {
484488
font-size: 16px;
485489
word-break: normal;
486490
word-wrap: normal;
487-
}
491+
}

docs/src/templates/js/docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ docsApp.controller.DocsNavigationCtrl = ['$scope', '$location', 'docsSearch', fu
7979
}
8080
if(totalSections > 0) {
8181
$scope.colClassName = 'cols-' + totalSections;
82-
$scope.hasResults = true;
8382
}
83+
$scope.hasResults = totalSections > 0;
8484
$scope.results = results;
8585
}
8686
else {

0 commit comments

Comments
 (0)