Fix double scroll bars in some columns in advanced interface (#27187)

This commit is contained in:
Claire 2023-10-03 13:12:39 +02:00
parent 927a2d3501
commit 8e2ab1d4ef
8 changed files with 62 additions and 69 deletions

View file

@ -22,12 +22,6 @@ export default class Column extends PureComponent {
scrollable = document.scrollingElement;
} else {
scrollable = this.node.querySelector('.scrollable');
// Some columns have nested `.scrollable` containers, with the outer one
// being a wrapper while the actual scrollable content is deeper.
if (scrollable.classList.contains('scrollable--flex')) {
scrollable = scrollable?.querySelector('.scrollable') || scrollable;
}
}
if (!scrollable) {