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

Bug: Too much text breaks width #1127

Closed
gojohnnygo opened this issue Jul 29, 2016 · 4 comments
Closed

Bug: Too much text breaks width #1127

gojohnnygo opened this issue Jul 29, 2016 · 4 comments

Comments

@gojohnnygo
Copy link
Contributor

gojohnnygo commented Jul 29, 2016

Looks like a long string will make this happen. Seems the component width needs to be passed into react-input-autosize's placeholderIsMinWidth prop.

I'll be happy to do a PR. What do you think is the best course of action?

image

@alexlopezit
Copy link

+1

@gojohnnygo
Copy link
Contributor Author

Just created a PR for it here JedWatson/react-input-autosize#71. Hopefully it'll get merged.

@tsi
Copy link

tsi commented Oct 17, 2017

Just stumbled on this issue and didn't like the option of setting a fixed pixel value as max-width since we're dealing with a fluid layout.

Here's my solution, which allows us to set max-width in percentages, pixel or my personal favorite - calc(), the tricky part was just setting table-layout: fixed:

.Select-control {
    table-layout: fixed;
}

.Select-input {
    overflow: hidden;
    max-width: calc(100% - 20px);
}

@bladey
Copy link
Contributor

bladey commented May 27, 2020

Hello -

In an effort to sustain the react-select project going forward, we're closing old issues / pull requests.

We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest version.

If you feel this issue / pull request is still relevant and you'd like us to review it, please leave a comment and we'll do our best to get back to you.

@bladey bladey closed this as completed May 27, 2020
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 a pull request may close this issue.

4 participants