Skip to content

Conversation

@manojalluri
Copy link

Summary

This PR fixes the breadcrumbs overflow issue on mobile devices by adding horizontal scroll support to the Breadcrumbs component.

Changes Made

  • Add overflowX: 'auto' to the Breadcrumbs Flex container to enable horizontal scrolling when content exceeds screen width
  • Set minWidth: '120px' for the last breadcrumb item to ensure readable truncation while maintaining a minimum visible width

Fixes #4508

PR Checklist

  • Bug fix
  • Feature
  • Refactoring (no functional changes)
  • Documentation
  • Other:

What is the new behavior?

When breadcrumbs contain long titles on mobile devices, instead of causing the whole screen to scroll sideways, the breadcrumbs container now scrolls horizontally within itself. The last breadcrumb item maintains a minimum width of 120px for readability.

Does this PR introduce a breaking change?

No

Other information

This fix was suggested in the issue - truncating the last item with a minimum width and applying horizontal scroll to the container when the screen width is smaller than the component width.

- Add overflowX: 'auto' to Breadcrumbs container for horizontal scroll on narrow screens
- Set minWidth: '120px' for the last breadcrumb item to ensure readable truncation

Fixes ONEARMY#4508
@cypress
Copy link

cypress bot commented Nov 25, 2025

onearmy-community-platform    Run #8257

Run Properties:  status check passed Passed #8257  •  git commit 58c2b6a989: Merge branch 'master' into fix/breadcrumbs-mobile-overflow
Project onearmy-community-platform
Branch Review pull/4509
Run status status check passed Passed #8257
Run duration 11m 31s
Commit git commit 58c2b6a989: Merge branch 'master' into fix/breadcrumbs-mobile-overflow
Committer Mário Nunes
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 88
View all changes introduced in this branch ↗︎

@dalibormrska dalibormrska added the Review allow-preview ✅ Has received manual check for malicious code and can be safely built for preview label Nov 25, 2025
@dalibormrska
Copy link
Member

Wow @manojalluri, really quick response, thank you for that!
I still see that it only solved the issue partially. Yes, currently the if doesn't overflow on most mobile devices. But...

  1. If the category name would be longer (which it will most likely be in the near future), then we still get the overflow as you can see on the picture.
image
  1. If we open it on a tablet, or a wider phone, we see that the truncation is stuck on a certain width, even though it has space to expand.
image

@mariojsnunes
Copy link
Contributor

heey @manojalluri, just checking in
do you think you will be able to look into @dalibormrska points above?

@benfurber benfurber moved this from 🆕 Backlog to In progress in Core Team - BAU list Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review allow-preview ✅ Has received manual check for malicious code and can be safely built for preview

Projects

Status: No status
Status: In progress

Development

Successfully merging this pull request may close these issues.

[bug] Breadcrumbs are overflowing on mobile

3 participants