Skip to content

Commit

Permalink
fix: Rotate the arrow icon when expand/collapse the test report (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo authored Mar 6, 2020
1 parent 42e6e49 commit 5aca7aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/templates/report.pug
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ html(lang="en")
});
return false;
});

//- rotate the arrow icon in accordion
$(".collapse").on('show.bs.collapse', function(){
$(this).parent().find("svg").first().addClass("rotate");
}).on('hide.bs.collapse', function(){
$(this).parent().find("svg").first().removeClass("rotate");
});
});

body.container-fluid
Expand Down
4 changes: 4 additions & 0 deletions resources/templates/scss/report.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ code.word-break-all {
pre.pre-wrap {
white-space: pre-wrap;
}

.rotate {
transform: rotate(90deg);
}

0 comments on commit 5aca7aa

Please sign in to comment.