Skip to content

Account for long text #203

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

Merged
merged 4 commits into from
Jan 4, 2018
Merged

Account for long text #203

merged 4 commits into from
Jan 4, 2018

Conversation

aulneau
Copy link
Contributor

@aulneau aulneau commented Jan 4, 2018

This PR is to account for longer text in most areas. The only spot that I think could cause issue is on the sidebar. It's pretty fixed, and until we have actual examples of length of words, I am not sure what we should do about that. We could allow for larger sidebar based off of a language.

This pr will prevent text from overflowing in the title area of folds, adding an '...' to the end of the string when it starts to overflow:

screen shot 2018-01-04 at 2 12 18 pm

This also passes className's down to the fold if you apply them on the component.

Copy link
Member

@bpostlethwaite bpostlethwaite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, looks good to me 💃

@VeraZab
Copy link
Contributor

VeraZab commented Jan 4, 2018

or text-font could get smaller? for languages who's menus translate to really long words?

@VeraZab
Copy link
Contributor

VeraZab commented Jan 4, 2018

but 💃 for this pr

@aulneau
Copy link
Contributor Author

aulneau commented Jan 4, 2018

@VeraZab yeah ideally it'd be great to not adjust type size, as we're already pretty small as it stands. Most areas (fold titles, buttons, section headers, field labels) all work with long text as I tested it (they will just wrap and look ok). The sidebar is fixed at a small width, though, so wrapping won't really be possible (esp with 1 word long items).

@aulneau aulneau merged commit 6ae3258 into master Jan 4, 2018
@alexcjohnson
Copy link
Collaborator

so wrapping won't really be possible (esp with 1 word long items).

can we hyphenate aggressively? you're right that sidebar titles really do NOT want to be truncated...

@alexcjohnson alexcjohnson deleted the account-for-long-text branch January 4, 2018 20:55
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.

4 participants