Skip to content

Button to close the preview panel does not appear for certain messages containing a URL #19138

@psrpinto

Description

@psrpinto

Steps to reproduce

  1. Under Settings -> Preferences -> Images, GIFs and videos, turn on the toggle for Enable inline URL previews by default
  2. Send the following message (without quotes): "https://matrix.org/docs/spec/client_server/latest https://matrix.org"
  3. Place your cursor on the URL preview that appears after you sent the above message

What did you expect?

Hovering the preview panel should make the button (X) to close it appear.

What happened?

The button (X) to close the preview panel does not appear when hovering the preview panel.

The image below illustrates the issue. On the left, the button is correctly displayed, on the right it isn't:

close-preview-cross-missing

Operating system

macOS Big Sur

Browser information

Firefox 92.0

URL for webapp

app.element.io

Homeserver

matrix.org

Have you submitted a rageshake?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TimelineA-URL-PreviewsO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions