diff --git a/changelog/unreleased/enhancement-long-breadcrumb-strategy b/changelog/unreleased/enhancement-long-breadcrumb-strategy new file mode 100644 index 00000000000..a4da40de905 --- /dev/null +++ b/changelog/unreleased/enhancement-long-breadcrumb-strategy @@ -0,0 +1,6 @@ +Enhancement: Long breadcrumb strategy + +We've implemented a new solution to deal with long breadcrumbs even with long folder names. + +https://github.com/owncloud/web/pull/8984 +https://github.com/owncloud/web/issues/6731 diff --git a/packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.spec.ts b/packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.spec.ts index c21c4910347..9bd986c8cfd 100644 --- a/packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.spec.ts +++ b/packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.spec.ts @@ -17,7 +17,9 @@ describe('OcBreadcrumb', () => { }) it('displays all items', () => { const { wrapper } = getWrapper() - expect(wrapper.findAll('.oc-breadcrumb-list-item').length).toBe(items.length) + expect(wrapper.findAll('.oc-breadcrumb-list-item:not(.oc-invisible-sr)').length).toBe( + items.length + ) expect(wrapper.html()).toMatchSnapshot() }) it('displays context menu trigger if enabled via property', () => { diff --git a/packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.vue b/packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.vue index 71ced5cd9f2..e14c7c84a45 100644 --- a/packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.vue +++ b/packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.vue @@ -2,12 +2,28 @@