Commit f46d3a4d authored by Phil Hughes's avatar Phil Hughes

Fixed diff more actions overlapping with virtual scroller

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/335168
parent e39972b7
......@@ -207,6 +207,19 @@ export default {
return this.codequalityDiff?.length > 0 && !this.glFeatures.codequalityMrDiffAnnotations;
},
},
watch: {
'idState.moreActionsShown': {
handler(val) {
const el = this.$el.closest('.vue-recycle-scroller__item-view');
if (this.glFeatures.diffsVirtualScrolling && el) {
// We can't add a class with Vue because of the way the virtual
// scroller library renders the diff files
el.classList.toggle('gl-z-index-1', val);
}
},
},
},
methods: {
...mapActions('diffs', [
'toggleFileDiscussions',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment