From 639407056a4d8f86ad2b6c2fe05af65f4808fab5 Mon Sep 17 00:00:00 2001 From: ClemDee Date: Fri, 7 Jun 2019 10:55:54 +0200 Subject: [PATCH] Fix toolbar collapse for shared folders --- www/drive/inner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/drive/inner.js b/www/drive/inner.js index b6c2a51c4..a0c5d6921 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -1648,7 +1648,8 @@ define([ var $pathElements = $container.find(".cp-app-drive-path-element"); $pathElements.not($spanCollapse).css("display", ""); - if (currentPath.length > 1 && drivePathOverflowing()) { + var oneFolder = currentPath.length > 1 + (currentPath[0] === SHARED_FOLDER); + if (oneFolder && drivePathOverflowing()) { var collapseLevel = 0; var removeOverflowElement = function () { if (drivePathOverflowing()) {