File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 57
57
background-color : var (--theme-hover );
58
58
}
59
59
60
- div .panel div .panel-body button . dropdown-toggle {
60
+ div .panel div .panel-body button {
61
61
background : var (--searchbar-bg );
62
62
color : var (--searchbar-fg );
63
63
border-color : var (--theme-popup-border );
64
64
}
65
65
66
- div .panel div .panel-body button . dropdown-toggle : hover {
66
+ div .panel div .panel-body button : hover {
67
67
box-shadow : 0 0 3px var (--searchbar-shadow-color );
68
68
}
69
69
70
- div .panel div .panel-body .open button .dropdown-toggle {
71
- background : var (--searchbar-bg );
72
- color : var (--searchbar-fg );
73
- border-color : var (--theme-popup-border );
70
+ div .panel div .panel-body button .open {
74
71
filter : brightness (90% );
75
72
}
76
73
96
93
@media (min-width : 992px ) {
97
94
.search-control {
98
95
margin-top : 0 ;
99
- float : right;
100
96
}
101
97
}
102
98
@@ -537,6 +533,14 @@ <h1>Clippy Lints</h1>
537
533
</ span >
538
534
</ div >
539
535
</ div >
536
+ < div class ="btn-group ">
537
+ < button title ="Collapse All " class ="btn btn-default expansion-control " type ="button " ng-click ="toggleExpansion(data, false); $event.stopPropagation() ">
538
+ < span class ="glyphicon glyphicon-collapse-up "> </ span >
539
+ </ button >
540
+ < button title ="Expand All " class ="btn btn-default expansion-control " type ="button " ng-click ="toggleExpansion(data, true); $event.stopPropagation() ">
541
+ < span class ="glyphicon glyphicon-collapse-down "> </ span >
542
+ </ button >
543
+ </ div >
540
544
</ div >
541
545
</ div >
542
546
<!-- The order of the filters should be from most likely to remove a lint to least likely to improve performance. -->
Original file line number Diff line number Diff line change 469
469
$location . path ( lint . id ) ;
470
470
} ;
471
471
472
+ $scope . toggleExpansion = function ( lints , isExpanded ) {
473
+ lints . forEach ( lint => {
474
+ $scope . open [ lint . id ] = isExpanded ;
475
+ } ) ;
476
+ }
477
+
472
478
$scope . copyToClipboard = function ( lint ) {
473
479
const clipboard = document . getElementById ( "clipboard-" + lint . id ) ;
474
480
if ( clipboard ) {
You can’t perform that action at this time.
0 commit comments