Peertube: NSFW video titles are visible when hovering

Created on 14 Aug 2019  路  2Comments  路  Source: Chocobozzz/PeerTube



What happened?

Hovering over an <a> section which has a title results in the title being displayed in something similar to a tool-tip.

This happens even with NSFW content which is blurred out.

image

What do you expect to happen instead?

While the ability to selectively show/hide titles and thumbnails would be nice, I expect that if the video title is hidden then it shouldn't pop up when hovering over the video thumbnail.

A possible solution would be to simply remove the title attribute when blurring the video, or to change the title to indicate that the contents are being hidden due to the NSFW flag.

Steps to reproduce:

  1. Set your NSFW video settings to "blur" (as opposed to hide or show)
  2. Find a video marked as NSFW which is blurred out.
  3. Hover over the video thumbnail. The title should pop up and be visible in the 'tool-tip'.

Additional information

  • PeerTube version or URL: v1.3.1 (tested on two servers of the same version)
  • Browser name/version: Google Chrome v76.0 64bit
  • HTML attribute copied from the Inspect Element tools:
<a _ngcontent-c18="" class="video-thumbnail" title="Game of disappoints (spoilers)" href="/videos/watch/33f5bd00-dc94-45ad-a957-5b97abec48eb"><img _ngcontent-c18="" alt="" class="blur-filter" aria-labelledby="Game of disappoints (spoilers)" src="https://betamax.video/static/thumbnails/33f5bd00-dc94-45ad-a957-5b97abec48eb.jpg"><div _ngcontent-c18="" class="video-thumbnail-duration-overlay">00:17</div><div _ngcontent-c18="" class="play-overlay"><div _ngcontent-c18="" class="icon"></div></div><!----></a>

I modified the title attribute and the hover changed to match.

Type

Most helpful comment

I kept this title attribute so you don't have to click on the video to know what it's about

All 2 comments

I kept this title attribute so you don't have to click on the video to know what it's about

Okay, so it was intentional. I can understand that, but I don't think it's the best way to handle it. A "Show/Hide Title" or similar option would be better, so that users have to intentionally opt into reading the title, instead of accidentally seeing it because they put the mouse cursor in the wrong place.

This also prevents mobile users from using that feature, because mobile users can't hover.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Angedestenebres picture Angedestenebres  路  3Comments

conferences-gesticulees picture conferences-gesticulees  路  3Comments

tcitworld picture tcitworld  路  3Comments

MikaXII picture MikaXII  路  3Comments

gegeweb picture gegeweb  路  3Comments