Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Updates based on @Kharonus' feedback

Parimal Satyald10847c7522e
diff --git a/frontend/src/stories/Breadcrumbs.stories.mdx b/frontend/src/stories/Breadcrumbs.stories.mdx
index 8374f453926..b69420ae6a1 100644
--- a/frontend/src/stories/Breadcrumbs.stories.mdx
+++ b/frontend/src/stories/Breadcrumbs.stories.mdx
@@ -6,7 +6,7 @@ import { Meta, Story, Canvas } from '@storybook/addon-docs';
> Example: A 3-level breadcrumb, root with icon
-Breadcrumbs provide important semantic context to information being presented on the screen by allowing users to identify where they are in a hierarchical structural.
+Breadcrumbs provide important semantic context to information being presented on the screen by allowing users to identify where they are in a hierarchical structure.
Breadcrumbs allow users to:
@@ -26,16 +26,14 @@ The last level is always the current level; this is never clickable. All other l
Because the length of the breadcrumb can vary significantly (depending on the title of each level and the available space), it can condense to fit the available space:
- The breadcrumb can show four (4) levels in full, space permitting, before going to "collapsed" mode.
-- If the available space in the parent container does afford sufficient width to display the four levels in full, their names are truncated with ellipses ("Root ▶ First level ▶ Second le... ▶ Third le... ▶ Fourth level").
- - *The middle levels (excluding first and last) are truncated first. (??)*
- - *If space is still tight, root and current level are also truncated. (??)*
+- If the available space in the parent container not does afford sufficient width to display the four levels in full, the middle levels are truncated with ellipses ("Root ▶ Second le... ▶ Third le... ▶ Fourth level").
> *Example: A 5-level breadcrumb, collapsed*
There are special rules on mobile:
-- The root level shows only an icon (no text)
-- The direct parent (...) is displays as non-shrinkable ellipses that are clickable
+- The root level shows only an icon and ellipses ("...", fully truncated).
+- The direct parent (...) is displayed as non-shrinkable ellipses that are clickable
- Further parents (between the direct parent and the root) are not displayed
- The current level maybe be truncated with ellipses ("Icon ▶ ... ▶Current le...) if needed.
@@ -52,7 +50,7 @@ The icon is almost always only used for the first item, although the component d
The text for each level is always a link, except for:
-- root level
+- current level
- collapsed levels between the direct parent and root in collapsed mode
## Margins and Spacing