From 1710aaf161acdd42e468fabe833f632f577bc4b4 Mon Sep 17 00:00:00 2001
From: Christina Toegl <toegl@tugraz.at>
Date: Mon, 3 Jan 2022 13:45:16 +0100
Subject: [PATCH] Fix breadcrumb menu width

---
 packages/file-handling/src/nextcloud-file-picker.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/packages/file-handling/src/nextcloud-file-picker.js b/packages/file-handling/src/nextcloud-file-picker.js
index d660d347..0ee5cb90 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;
         }
-- 
GitLab