From 653d215754c9eb3ffe15db925219a181a7213c52 Mon Sep 17 00:00:00 2001 From: Soham Shinde <65284576+soham04@users.noreply.github.com> Date: Tue, 28 Oct 2025 04:09:52 +0000 Subject: [PATCH 1/2] fix: Make current folder non-clickable in breadcrumb path bar - Add isCurrent flag to identify last breadcrumb item - Disable 'to' prop and click handler for current directory - Current folder now appears as a label instead of clickable button - Fixes visual spacing issue with the New button Fixes #55988 --- apps/files/src/components/BreadCrumbs.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/files/src/components/BreadCrumbs.vue b/apps/files/src/components/BreadCrumbs.vue index 36cfc58f45f84..307b12ec317f6 100644 --- a/apps/files/src/components/BreadCrumbs.vue +++ b/apps/files/src/components/BreadCrumbs.vue @@ -19,7 +19,7 @@ :force-icon-text="index === 0 && fileListWidth >= 486" :title="titleForSection(index, section)" :aria-description="ariaForSection(section)" - @click.native="onClick(section.to)" + @click.native="section.isCurrent ? undefined : onClick(section.to)" @dragover.native="onDragOver($event, section.dir)" @drop="onDrop($event, section.dir)">