Commit fa34789a authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ph/335168/fixMoreActionsVirtualScroller' into 'master'

Fixed diff more actions overlapping with virtual scroller

See merge request gitlab-org/gitlab!65446
parents f4c43eac f46d3a4d
...@@ -207,6 +207,19 @@ export default { ...@@ -207,6 +207,19 @@ export default {
return this.codequalityDiff?.length > 0 && !this.glFeatures.codequalityMrDiffAnnotations; 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: { methods: {
...mapActions('diffs', [ ...mapActions('diffs', [
'toggleFileDiscussions', '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