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

Documentation clamp fixes #4858

Merged
merged 1 commit into from
Oct 23, 2017
Merged

Conversation

chenriksson
Copy link
Member

@chenriksson chenriksson commented Oct 17, 2017

Fixes #4812 and #4770

This revives the client-side clamping from @JarahSi. I've disabled the native (-webkit-line-clamp) support due to formatting issues possibly caused by conflicts with the redesign css. Instead, it does javascript clamping which adjusts the max height.

<div id="readme-clamped" class="readme collapse in">
@Html.Raw(Model.ReadMeHtmlClamped)
<div id="readme-less" class="collapse in">
@Html.Raw(Model.ReadMeHtml)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would leave a comment here stating that this id gets "clamped", because otherwise it's a little funny that you have the same content twice in a row.

@chenriksson chenriksson merged commit 2abbc31 into chenriks-doc-bugs Oct 23, 2017
@chenriksson chenriksson deleted the chenriks-doc-clamp branch October 23, 2017 19:00
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.

3 participants