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

Dropdown.Button as a single non-wrappable element #4355

Merged
merged 1 commit into from
Dec 24, 2016

Conversation

alexkirsz
Copy link
Contributor

@alexkirsz alexkirsz commented Dec 24, 2016

When a Dropdown.Button is rendered inside of an element that isn't wide enough to contain both the button itself as well as the dropdown button, the text wraps around and the elements are displayed on different lines.

This PR adds a single white-space: nowrap; rule so that the elements are always displayed on the same line.

In the example below, the Dropdown.Button is displayed inside a table cell with width: ".1%", to push it to the far right.

Before:
image

After:
image

@mention-bot
Copy link

@Morhaus, thanks for your PR! By analyzing the history of the files in this pull request, we identified @afc163, @yiminghe and @PinkyJie to be potential reviewers.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 71.523% when pulling 072155b on Morhaus:patch-1 into 72e1364 on ant-design:master.

@afc163
Copy link
Member

afc163 commented Dec 24, 2016

Thx!

@afc163 afc163 merged commit 5177208 into ant-design:master Dec 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants