Resolve "Merge request collapse icon is tiny"

This commit is contained in:
Tim Zallmann 2018-06-29 21:27:58 +00:00 committed by Fatih Acet
parent e325367a85
commit 9ecb06ae2a
2 changed files with 7 additions and 3 deletions

View File

@ -112,7 +112,11 @@ export default {
},
methods: {
handleToggle(e, checkTarget) {
if (!checkTarget || e.target === this.$refs.header) {
if (
!checkTarget ||
e.target === this.$refs.header ||
(e.target.classList && e.target.classList.contains('diff-toggle-caret'))
) {
this.$emit('toggleFile');
}
},

View File

@ -14,8 +14,8 @@
background-color: $gray-normal;
}
.diff-toggle-caret {
padding-right: 6px;
svg {
vertical-align: text-bottom;
}
}