react icon indicating copy to clipboard operation
react copied to clipboard

Breadcrumbs.Item with a long name will be out of the screen

Open pavelkeyzik opened this issue 5 years ago • 4 comments

Describe the bug

As you may see in screenshots section that if we're using a long name for Breadcrumb.Item then it's out of the screen. The case of using long names in breadcrumbs is article name with a long title.

To Reproduce

Steps to reproduce the behavior:

  1. Just add a long text in Breadcrumb.Item
  2. And change size of the window to small one

Expected behavior

Text is not running out of the screen

Screenshots

image

Desktop

  • OS: Mac OS
  • Browser Safari
  • Version 14.0.3

Additional context

If you have any ideas how we can fix it then I'll be happy to do PR.

I've tried to add white-space: break-spaces rule. It works except the thing that '/' element is always at the end of line.

Another idea is to change the way how '/' is added between elements. Instead of using :after we can add this as component while mapping elements here but I haven't tried this yet.

pavelkeyzik avatar Aug 13 '21 14:08 pavelkeyzik

Added to our backlog. Thank you!

colebemis avatar Aug 13 '21 15:08 colebemis

cc @vdepizzol @ashygee for design input on how we should handle long breadcrumbs

colebemis avatar Aug 16 '21 16:08 colebemis

Sorry for the late reply @colebemis! I am going to add this to our Breadcrumbs tracking issue.

ashygee avatar Sep 14 '21 14:09 ashygee

Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.

github-actions[bot] avatar Apr 17 '22 19:04 github-actions[bot]