Commit c6818603 authored by Randall Leeds's avatar Randall Leeds

Only show first block of bodies when collapsed

The selectors and markup here could use a cleanup, but at least now
collapsed annotations that have markdown lists and things will still
collapse.
parent 135e3d1d
...@@ -80,8 +80,6 @@ $threadexp-width: .6em; ...@@ -80,8 +80,6 @@ $threadexp-width: .6em;
} }
&.collapsed { &.collapsed {
display: block !important;
&:hover { &:hover {
background-color: $gray-lightest; background-color: $gray-lightest;
} }
...@@ -92,13 +90,16 @@ $threadexp-width: .6em; ...@@ -92,13 +90,16 @@ $threadexp-width: .6em;
} }
& > .annotation { & > .annotation {
.body * { markdown > div > * {
display: none;
}
markdown > div > *:first-child {
display: block;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
-o-text-overflow: ellipsis; -o-text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
margin-top: 0;
margin-bottom: 0;
} }
.indicators { .indicators {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment