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

Message previews spoil spoilers #14447

Open
turt2live opened this issue Jul 13, 2020 · 6 comments
Open

Message previews spoil spoilers #14447

turt2live opened this issue Jul 13, 2020 · 6 comments
Labels
A-Message-Previews A-Room-List Hacktoberfest Issues which are suitable for Hacktoberfest PRs: https://hacktoberfest.digitalocean.com/ Help Wanted Extra attention is needed O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Needs-Design

Comments

@turt2live
Copy link
Member

No description provided.

@janogarcia
Copy link

janogarcia commented Jan 14, 2022

@turt2live Unsure about the technical implications but I'd suggest changing the visual rendering from

Plain text

to

Spoiler ██████████

@SimonBrandner SimonBrandner added A-Message-Previews O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect labels Jan 14, 2022
@SimonBrandner
Copy link
Contributor

SimonBrandner commented Jan 14, 2022

A problem here could be that a part of a message can be a spoiler, not necessarily the whole message, what would things look like then?

@janogarcia
Copy link

@SimonBrandner I wasn't aware of that, I though the whole message would always get hidden. Thanks for flagging it, Simon. In that case the workaround I suggested doesn't make sense. We should only obscure the relevant part.

Also, just to clarify it, I'm not suggesting using actual full block characters as that's probably an awful idea accessibility-wise. It was a quick way to represent the visual spoiler effect.

@SimonBrandner
Copy link
Contributor

So if I understand you correctly we would just blur the spoiler part of the message in the preview the same way we do in the timeline. Though we wouldn't allow clicking the spoiler to reveal it the same way we do in the timeline

Thanks for looking into this!

@janogarcia
Copy link

@SimonBrandner We'll need to revisit this at a later point in time. It's not a top priority right now, but it will be considered once we start working on improving the rendering of the different content types and formatting styles across all the different contexts: element-hq/element-meta#121

@robintown robintown added Help Wanted Extra attention is needed O-Occasional Affects or can be seen by some users regularly or most users rarely and removed O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Jun 29, 2022
@gabrc52
Copy link

gabrc52 commented Dec 29, 2022

The merged Android PR element-hq/element-android#4426 fixes the Android equivalent of this issue and #12034 (screenshots from the PR are below)

While spoilers are used occassionally as it says in the labels, I believe that spoilers are a special case that deserves a change without necessarily needing an entire overhaul in Element content rendering. Showing the text of spoilers in previews defeats the point of spoilers, and Element Web and Desktop should reach feature parity with Android and hide spoilers too.

I could look into submitting a PR, but I'm unsure which repo would need changing. If so, let me know if such a change would be reviewed and merged (I assume so from "help wanted" label) or if you would instead wait until element-hq/element-meta#121 is resolved.

image
image

@Johennes Johennes added the Hacktoberfest Issues which are suitable for Hacktoberfest PRs: https://hacktoberfest.digitalocean.com/ label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Message-Previews A-Room-List Hacktoberfest Issues which are suitable for Hacktoberfest PRs: https://hacktoberfest.digitalocean.com/ Help Wanted Extra attention is needed O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Needs-Design
Projects
None yet
Development

No branches or pull requests

7 participants