Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add Spoilers as per MSC2010 #3018

Merged
merged 5 commits into from
Aug 29, 2019
Merged

Conversation

Sorunome
Copy link
Contributor

@Sorunome Sorunome commented May 22, 2019

This PR adds spoiler support as to the still WIP matrix-org/matrix-spec-proposals#2010

Rendered example:

Signed-off-by: Sorunome mail@sorunome.de

{ reason }
 
<span className="mx_EventTile_spoiler_content">
<span dangerouslySetInnerHTML={{ __html: this.props.contentHtml }} />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is pretty stupid. Soru had to pass the content as HTML as, apparently, react doesn't allow attaching a DOM node as child...does anyone know a cleaner solution?

@Sorunome Sorunome marked this pull request as ready for review June 11, 2019 19:09
@Sorunome
Copy link
Contributor Author

This PR is ready for review

@turt2live turt2live requested a review from a team August 28, 2019 18:26
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

Generally looks fine - thank you! Can we get a screenshot in the PR description to make design overview a bit easier as well as ensure we have a reference for when/if this ever breaks visually.

We'll also need signoff for the changes - depending on where you are located you might be able to get away with using a pseudonym instead of your real name, if you prefer.

src/components/views/elements/Spoiler.js Outdated Show resolved Hide resolved
src/components/views/elements/Spoiler.js Show resolved Hide resolved
@Sorunome
Copy link
Contributor Author

Sorunome commented Aug 29, 2019

We'll also need signoff for the changes - depending on where you are located you might be able to get away with using a pseudonym instead of your real name, if you prefer.

Soru thought signing each commit was sufficient? As for real name, soru is not willing to use it here.

@jryans
Copy link
Collaborator

jryans commented Aug 29, 2019

Soru thought signing each commit was sufficient? As for real name, soru is not willing to use it here.

You can either sign off in commits or the PR. See the contributing doc for more details. It looks like your commits have a GPG signature / verified label, but that is not the same as "sign off". Sign off means adding the text Signed-off-by: Your Name <your@email.example.org> to either each commit or the PR.

As for name, I believe using a name you are comfortable with identifying you is sufficient for this purpose.

Once the sign off is done, comment here and we can send this for another review round. Thanks! 😄

@Sorunome
Copy link
Contributor Author

Okay, done, thank you!

Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

code looks fine - going to send this off to @nadonomy for design overview

@nadonomy
Copy link
Contributor

Visually this looks fine! Are we confident in whatever blur technique we're using behaving well across all browsers?

@turt2live
Copy link
Member

https://caniuse.com/#feat=css-filters says yes

@turt2live
Copy link
Member

this goes to develop, so let's see how bad it can possibly be in practice :p

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants