Skip to content

Set min-height to event when formatted HTML is empty to avoid overlapping timestamps #21381

Closed
matrix-org/matrix-react-sdk
#8205
@SamiLehtinen

Description

@SamiLehtinen

Steps to reproduce

Received message with custom html:

{
  "room_id": "!redacted:envs.net",
  "type": "m.room.message",
  "content": {
    "body": "<div style=\"padding-top: 56.25%; position: relative;\"> <iframe src=\"redacted\" allowfullscreen frameborder=\"0\" style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%;\" ></iframe> </div>",
    "format": "org.matrix.custom.html",
    "msgtype": "m.text",
    "formatted_body": "<!-- raw HTML omitted -->"
  }
}

Outcome

Timestamps overlap, because the content collapses for some reason.
image
The mosaic part is user image and name, works as usual. There are three over lapping timestamps, but you can have more or less, by sending content like above.

Operating system

Ubuntu

Application version

1.10.6

How did you install the app?

No response

Homeserver

doesn't affect afaik

Will you send logs?

No

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions