Skip to content

Commit

Permalink
fix(breadcrumbs): improved conditional rendering logic of breadcrumbs
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Morales <[email protected]>
  • Loading branch information
emoral435 committed Mar 25, 2024
1 parent 31794ad commit 7774bfc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/files/src/components/BreadCrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7774bfc

Please sign in to comment.