-
Notifications
You must be signed in to change notification settings - Fork 275
[ui5-bar]: Buttons in startContent and endContent are cut off when there is long title #11028
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
Comments
Hello @adrian-bobev, Since the content of the different parts (startContent, midContent, and endContent) can vary, I recommend setting a minimum width for the For example: [ui5-bar]::part(endContent) {
min-width: 2rem;
} This approach ensures that even if the content changes, the layout remains consistent. Best regards, |
Hello @hinzzx, Actually, this won't fully resolve the underlying issue. In our case, we have a button with an icon that has a fixed width. However, the button could also contain translated text, which varies in size depending on the language. I haven't tested all possible use cases of the bar, but setting min-width: fit-content on the start and end content divs consistently fixes the issue. I believe this adjustment should be handled at the component level rather than by the application itself. Best regards, |
This issue has been closed. To reopen, just leave a comment! |
1 similar comment
This issue has been closed. To reopen, just leave a comment! |
🎉 This issue has been resolved in version v2.10.0 🎉 The release is available on v2.10.0 Your semantic-release bot 📦🚀 |
Bug Description
If you have a long title in the bar default slot, the startContent and endContent buttons are cut off
Affected Component
ui5-bar
Expected Behaviour
No cut off
Isolated Example
https://sap.github.io/ui5-webcomponents/play/#eyJpbmRleC5odG1sIjp7Im5hbWUiOiJpbmRleC5odG1sIiwiY29udGVudCI6IjwhLS0gcGxheWdyb3VuZC1mb2xkIC0tPlxuPCFET0NUWVBFIGh0bWw-XG48aHRtbCBsYW5nPVwiZW5cIj5cblxuXG48aGVhZD5cbiAgICBcbiAgICA8c3R5bGU-XG4gICAgICAqOm5vdCg6ZGVmaW5lZCkge1xuICAgICAgICBkaXNwbGF5OiBub25lO1xuICAgICAgfVxuXG4gICAgaHRtbCB7XG4gICAgICBmb3JjZWQtY29sb3ItYWRqdXN0OiBub25lO1xuICAgIH1cbiAgICA8L3N0eWxlPlxuXG4gICAgXG4gICAgPHN0eWxlPlxuICAgICAgKjpub3QoOmRlZmluZWQpIHtcbiAgICAgICAgZGlz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48L3NjcmlwdD5cbjwvYm9keT5cbjwvaHRtbD5cbjwhLS0gcGxheWdyb3VuZC1mb2xkLWVuZCAtLT5cblxuIn0sIm1haW4uanMiOnsibmFtZSI6Im1haW4uanMiLCJjb250ZW50IjoiLyogcGxheWdyb3VuZC1oaWRlICovXG5pbXBvcnQgXCIuL3BsYXlncm91bmQtc3VwcG9ydC5qc1wiO1xuLyogcGxheWdyb3VuZC1oaWRlLWVuZCAqL1xuaW1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzL2Rpc3QvQnV0dG9uLmpzXCI7XG5pbXBvcnQgXCJAdWk1L3dlYmNvbXBvbmVudHMvZGlzdC9UaXRsZS5qc1wiO1xuaW1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzL2Rpc3QvQmFyLmpzXCI7XG5pbXBvcnQgXCJAdWk1L3dlYmNvbXBvbmVudHMtaWNvbnMvZGlzdC9ob21lLmpzXCJcbmltcG9ydCBcIkB1aTUvd2ViY29tcG9uZW50cy1pY29ucy9kaXN0L2FjdGlvbi1zZXR0aW5ncy5qc1wiXG4ifX0
Steps to Reproduce
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
latest, did not check others
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: