You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ui5-bar): prevent midContent from overlapping start and endContent on overflow (#11294)
Previously when the content inside the <ui5-bar> component, especially a long text in the midContent slot, was provided the content was overlapping the startContent and endContent, especially when the bar was resized or contained limited space.
2025-04-09_15-41-31
The reason behind this was that while all three content containers were using flex, they allowed the middle content (midContent) to grow too much.
Now the startContent and endContent set to flex: 0 0 auto to maintain their natural size and prevent shrinking past their content.
midContent set to flex: 1 1 auto to take up remaining space and shrink if needed.
min-width: 0 on midContent to allow truncation.
Added overflow: hidden to .ui5-bar-root so any overflowing content would be clipped rather than spill outside the bar (just like in UI5);
2025-04-09_15-45-32
Fixes: #11028
Co-authored-by: tsanislavgatev <[email protected]>
0 commit comments