Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NcBreadcrumbs): improve the breadcrumbs shrinking behaviour #5069

Merged
merged 1 commit into from Jan 15, 2024

Conversation

raimund-schluessler
Copy link
Contributor

@raimund-schluessler raimund-schluessler commented Jan 14, 2024

☑️ Resolves

This PR fixes a bug and improves the shrinking behavior of NcBreadcrumbs.

In case the last crumb has actions, the crumb would overflow and not ellipsise:

🏚️ Before 🏡 After
grafik grafik

Improved shrinking behavior:

The last crumb now uses all the available space before ellipsising the text. If not enough space is available, it shrinks until it is 210px wide, then the first crumb will be hidden. The freed space will then be used again by the last crumb. The min-width: 210px; is the same width as before.

🏚️ Before (discrete jumps and unused white-space on the right):

Bildschirmaufzeichnung.vom.2024-01-14.21-29-57.webm

🏡 After (continuous shrinking and no unused space, last crumb extends as needed and possible):

Bildschirmaufzeichnung.vom.2024-01-14.21-28-42.webm

@raimund-schluessler raimund-schluessler added this to the 8.4.1 milestone Jan 14, 2024
@raimund-schluessler raimund-schluessler added the feature: breadcrumbs Related to the breadcrumbs components label Jan 14, 2024
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
@raimund-schluessler raimund-schluessler added bug Something isn't working enhancement New feature or request 3. to review Waiting for reviews labels Jan 14, 2024
@raimund-schluessler raimund-schluessler marked this pull request as ready for review January 14, 2024 21:03
@susnux susnux merged commit 91c44a3 into master Jan 15, 2024
16 checks passed
@susnux susnux deleted the fix/noid/breadcrumbs-shrinking branch January 15, 2024 18:00
@susnux susnux modified the milestones: 8.4.1, 8.5.0 Jan 15, 2024
Copy link
Contributor

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

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

Looks very nice @raimund-schluessler! ✨

@Pytal Pytal mentioned this pull request Jan 23, 2024
@susnux susnux removed the enhancement New feature or request label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working feature: breadcrumbs Related to the breadcrumbs components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants