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(ui5-toolbar): hide overflow button when content fits #10405

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

nnaydenow
Copy link
Contributor

If the content width of ui5-toolbar fits within the toolbar's width, the overflow button was incorrectly displayed. Additionally, there was an issue where the last visible item had extra padding because a selector never matched. This pull request fixes both problems by ensuring the overflow button only appears when necessary and removing the unnecessary padding from the last item.

Fixes: #10376

@nnaydenow nnaydenow merged commit 4ac9428 into main Dec 18, 2024
10 checks passed
@nnaydenow nnaydenow deleted the toolbar-overflow branch December 18, 2024 07:51
@mydavidzhang
Copy link

@nnaydenow when resize (move to bigger screen case) some buttons visibility is incorrect. For example after resize there is enough space then some button in overflow menu should be displayed on toolbar directly. Has this resize issue also been fixed already by this PR?

@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.6.0-rc.2 🎉

The release is available on v2.6.0-rc.2

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toolbar issue with CSS width:fit-content
4 participants