From 7774bfc1756780c89505b181390e5f0934a82976 Mon Sep 17 00:00:00 2001 From: Eduardo Morales Date: Mon, 25 Mar 2024 06:31:28 -0500 Subject: [PATCH] fix(breadcrumbs): improved conditional rendering logic of breadcrumbs Signed-off-by: Eduardo Morales --- apps/files/src/components/BreadCrumbs.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/files/src/components/BreadCrumbs.vue b/apps/files/src/components/BreadCrumbs.vue index d76ed714f20cd..a8b9dd2276ded 100644 --- a/apps/files/src/components/BreadCrumbs.vue +++ b/apps/files/src/components/BreadCrumbs.vue @@ -128,7 +128,13 @@ export default defineComponent({ // Hide breadcrumbs if an upload is ongoing shouldShowBreadcrumbs(): boolean { - return this.filesListWidth > 400 && !this.isUploadInProgress + // If we're uploading files, only show the breadcrumbs + // if the files list is greater than 768px wide + if (this.isUploadInProgress) { + return this.filesListWidth > 400 + } + // always show breadcrumbs if there is no upload in progress + return true }, // used to show the views icon for the first breadcrumb