diff --git a/packages/file-handling/src/nextcloud-file-picker.js b/packages/file-handling/src/nextcloud-file-picker.js index d660d347b0d1f55d8b6ff82ea5f5a688b2592b63..0ee5cb903d7c1b0a6997f6103eaa0fd368849584 100644 --- a/packages/file-handling/src/nextcloud-file-picker.js +++ b/packages/file-handling/src/nextcloud-file-picker.js @@ -1974,6 +1974,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { // computations for overflow - end if (!menu.classList.contains('hidden')) { // add event listener for clicking outside of menu + menu.setAttribute('style', 'max-width: ' + maxWidth + 'px;'); //TODO verify if this is enough document.addEventListener('click', this.boundCloseBreadcrumbMenuHandler); this.initateOpenBreadcrumbMenu = true; }