Skip to content

breaking long words in the crates list #453

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 1 commit into from
Oct 6, 2016
Merged

breaking long words in the crates list #453

merged 1 commit into from
Oct 6, 2016

Conversation

ducks
Copy link

@ducks ducks commented Oct 6, 2016

fixes #451

(I could no longer see that crate so I just made up a very long version number)

screen shot 2016-10-06 at 10 21 53 am

@steveklabnik
Copy link
Member

I like it. @carols10cents / @alexcrichton ?

@alexcrichton
Copy link
Member

Is there a CSS way to truncate a version? I'd personally prefer something like very-long-v... so everything always fit on one line

@ducks
Copy link
Author

ducks commented Oct 6, 2016

Yeah, there is https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow which I tried first, but that needs to be on the anchor tag I believe and since it's a flex child, it doesn't have a sense of width and thus can't really know what is overflowing and what to clip. That's why I had to set that property up the tree.

I can keep banging on it if that's definitely preferred.

@alexcrichton
Copy link
Member

Yeah perhaps we can tweak the markup here to take advantage of that?

@ducks
Copy link
Author

ducks commented Oct 6, 2016

Sure, I'll try that

@ducks
Copy link
Author

ducks commented Oct 6, 2016

oh, css, you finicky beast
anyway, I think I have this truncated correctly now.

https://css-tricks.com/flexbox-truncated-text/
and more directly https://css-tricks.com/flexbox-truncated-text/#article-header-id-3

screen shot 2016-10-06 at 12 42 41 pm

@alexcrichton alexcrichton merged commit d5060f9 into rust-lang:master Oct 6, 2016
@alexcrichton
Copy link
Member

Thanks!

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.

Frontpage Columns Messed Up
3 participants