Skip to content

Commit

Permalink
Merge pull request desktop#1358 from desktop/pun-about-commit-descrip…
Browse files Browse the repository at this point in the history
…tions-padding

Fix padding for longer commit descriptions
  • Loading branch information
niik authored May 16, 2017
2 parents 565ca5a + f76a4f2 commit 08c47e1
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions app/styles/ui/history/_commit-summary.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,10 @@
.commit-summary-description-scroll-view {
max-height: none;
overflow: auto;
}
}

&.collapsed {
.commit-summary-description {
// When the body is collapsed we skip the bottom padding, this makes
// it much more clear to the user that there's more to read. With a
// bottom padding it appears as if it's all there is.
padding-bottom: 0;
&:before {
content: none;
}
}
}

Expand Down Expand Up @@ -80,7 +75,16 @@

&-description-scroll-view {
overflow: hidden;
max-height: 60px;
// The extra pixel makes the space align up with the commit list.
max-height: 61px;

&:before {
content: "";
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40px, rgba(255, 255, 255, 0.5) 40px, white 60px);
position: absolute;
height: 100%;
width: 100%;
}
}

// Enable text selection inside the title and description elements.
Expand Down

0 comments on commit 08c47e1

Please sign in to comment.