Skip to content

Conversation

@yakov116
Copy link
Member

Co-Authored-By: Fregante <opensource@bfred.it>
@yakov116 yakov116 added the bug label Feb 23, 2021
@fregante
Copy link
Member

As long as it was tested on the licecap thread for the similar comment it’s good to be merged

@yakov116 yakov116 merged commit d5b8ecf into main Feb 23, 2021
@yakov116 yakov116 deleted the im-hiding-too-much branch February 23, 2021 05:43
@yakov116
Copy link
Member Author

@cheap-glitch can you look this over? Why do we use different selectors for hide and unhide?


// Expand all "similar comments" boxes
for (const similarCommentsExpandButton of select.all('.js-discussion .Details-content--closed > span:only-child')) {
for (const similarCommentsExpandButton of select.all('.pagination-loader-container .Details-content--closed > span:only-child')) {
Copy link
Contributor

@cheap-glitch cheap-glitch Feb 23, 2021

Choose a reason for hiding this comment

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

@yakov116 we can indeed simplify this selector to '.js-discussion .Details-element:not([data-body-version]) > summary' (tested in both cases)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thought so but it was waay past my bed time and I wanted to release it. (We don't want broken features)

I put it on my list for my next lint

@fregante
Copy link
Member

This broke #3992

In the linked Licecap thread you can clearly see that the similar comment is hidden, but not expanded later:

Screen Shot

@fregante
Copy link
Member

Also it might be a good time to also fix that little corner. The rule should be be:

.rgh our class .timeline-comment--caret:before {
	border-right-color: var(--github-red);
}

@cheap-glitch
Copy link
Contributor

cheap-glitch commented Feb 25, 2021

In the linked Licecap thread you can clearly see that the similar comment is hidden, but not expanded later

Weird, it's working for me (Firefox + 21.2.23). Edit: tested on Chromium, it works there too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants