Resolve "Merge request collapse icon is tiny"
This commit is contained in:
parent
e325367a85
commit
9ecb06ae2a
|
@ -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');
|
||||
}
|
||||
},
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
background-color: $gray-normal;
|
||||
}
|
||||
|
||||
.diff-toggle-caret {
|
||||
padding-right: 6px;
|
||||
svg {
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue