Skip to content

💄Fix breadcrumb truncation and mobile layout#2665

Merged
Aibono1225 merged 2 commits into
mainfrom
2661-improve-breadcrumb
Jun 23, 2026
Merged

💄Fix breadcrumb truncation and mobile layout#2665
Aibono1225 merged 2 commits into
mainfrom
2661-improve-breadcrumb

Conversation

@Aibono1225

@Aibono1225 Aibono1225 commented Jun 17, 2026

Copy link
Copy Markdown
Member

Relates to #2661

Summary

  • Mobile: Replaced the stacked vertical breadcrumb list with a single line showing only the immediate parent (first category if available, otherwise "SSW Rules"). This prevents multi-line wrapping on small
    screens per the SSW breadcrumb rule.
  • Desktop: Kept the full breadcrumb trail but added proper truncation — labels now cap at ~80 characters and show an ellipsis instead of overflowing or wrapping.
  • Both: Fixed a flex layout issue where truncate had no effect because parent elements lacked min-w-0, causing long text to wrap rather than clip.
image

Figure: Mobile view

… effective breadcrumbs rule. On mobile, only the immediate parent shows on one line; on desktop, labels truncate at 80 characters.
@Aibono1225

Copy link
Copy Markdown
Member Author

/deploy

@Aibono1225 Aibono1225 changed the title Fixed breadcrumb truncation in Breadcrumbs.tsx to comply with the SSW… 💄Fix breadcrumb truncation and mobile layout Jun 17, 2026
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

PR Preview Deployed

Preview URL https://app-sswrules-staging-pr-2665.azurewebsites.net/rules
Slot Name pr-2665
Branch 2661-improve-breadcrumb
Commit b03785b40c8356f5802d786d540136428427d612

This preview will be automatically deleted when the PR is closed.

@Aibono1225

Copy link
Copy Markdown
Member Author

Hi @micsblank @tiagov8

The UI improvement for breadcrumbs raised in #2661 has been deployed to staging 🙂. Here's the link: https://app-sswrules-staging-pr-2665.azurewebsites.net/rules/

  1. Test Please

@tiagov8

tiagov8 commented Jun 19, 2026

Copy link
Copy Markdown
Member

Hi @Aibono1225

❌ Test fail

Although it doesn't show the unwanted multiple lines, 2 elements of the breadcrumb were just hidden... (instead of truncated)

From

SSW / SSW Rules / Category / This rule

to

SSW / Category

Screenshot 2026-06-19 at 1 00 00 PM

Figure: We don't see "SSW Rules homepage" not "This rule" in this view

@Aibono1225

Copy link
Copy Markdown
Member Author

/deploy

@Aibono1225

Aibono1225 commented Jun 22, 2026

Copy link
Copy Markdown
Member Author

Hi @Aibono1225

❌ Test fail

Although it doesn't show the unwanted multiple lines, 2 elements of the breadcrumb were just hidden... (instead of truncated)

From

SSW / SSW Rules / Category / This rule

to

SSW / Category

Screenshot 2026-06-19 at 1 00 00 PM **Figure: We don't see "SSW Rules homepage" not "This rule" in this view**

Hi @tiagov8 ,

Fixed - The previous version followed the rule’s “show only the immediate parent on mobile” suggestion, I’ve switched it to truncation instead, now all breadcrumb elements stay visible on one line and long labels use an ellipsis.

  1. Please check again on https://app-sswrules-staging-pr-2665.azurewebsites.net/rules
image

@tiagov8 tiagov8 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants