sindresorhus/refined-github

Collapse resolved comments #2515

Mottie posted onGitHub

Problem:

Multiple resolved comments take up too much space.

I was just messing around with the following css.

details[data-resolved="true"] + details[data-resolved="true"] {
  margin-top: -3.2em !important;
  transition: margin 300ms;
}
.TimelineItem:hover details[data-resolved="true"] + details[data-resolved="true"] {
  margin-top: 0 !important;
}

When you hover over a block of resolved comments, it expands. When you show the resolved content, the comment stays open but the other comments collapse behind it. See the screenshot.

If anyone is interested, please feel free to use it... I don't think it would be a good addition to the hide-useless-comments feature. Maybe it could go into a new feature?

Example URL

https://github.com/sindresorhus/refined-github/pull/2416#pullrequestreview-285236279

Screenshot

collapse


Closing because of the reason above. Comment if you disagree

posted by fregante about 5 years ago

Fund this Issue

$0.00
Funded

Pull requests