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

Extend clean-conversations to new comment forms #5315

Merged
merged 4 commits into from
Jan 19, 2022
Merged

Conversation

kidonng
Copy link
Member

@kidonng kidonng commented Jan 15, 2022

Cherry-picked from 84c9dc1 (#5113)

Mentioned in #1066

Test URLs

Screenshot

Before After

@cheap-glitch cheap-glitch changed the title clean-conversations: enable on conversations Extend clean-conversations to new comment forms Jan 15, 2022
fregante
fregante previously approved these changes Jan 17, 2022
display: none;
}

.review-thread-reply .review-thread-reply-button {
margin-left: 0;
}

/* Hide arrow on new comment form */
.timeline-comment--caret::before,
Copy link
Member

Choose a reason for hiding this comment

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

Does this really only target the form? The selector is generic

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, this was done in a hurry in my previous lint PR 😅

Comment on lines -38 to -46
/* Remove user avatar from new comment form on threads */
.review-thread-reply .avatar {
display: none;
}

.review-thread-reply .review-thread-reply-button {
margin-left: 0;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Apparently forgotten in f099d37 (#1986)

/* Remove user avatar from new comment form on threads */
.review-thread-reply .avatar {
/* Remove user avatar from new comment form */
:is(.review-thread-reply, .timeline-new-comment) .avatar {
Copy link
Member Author

Choose a reason for hiding this comment

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

  • Despite the name, .review-thread-reply is also used in Discussions thread reply (could it be that they are review comments in disguise? 🤔)
  • .timeline-new-comment works on both conversations and commits page

Copy link
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

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

Untested but LGTM

@kidonng kidonng merged commit 1f6f0a7 into main Jan 19, 2022
@kidonng kidonng deleted the clean-conversations branch January 19, 2022 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants