question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
goeleshacommented, Mar 30, 2022

@andybalaam May I work on this issue.

0reactions
goeleshacommented, Mar 31, 2022

@goelesha I suggest you ask any questions you have here, and then anyone who knows the answer can add it. Or, for more general questions, I suggest you ask in the Matrix room #element-dev:matrix.org

Noted

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set min-height to event when formatted HTML is empty to avoid ...
Set min-height to event when formatted HTML is empty to avoid overlapping timestamps · Set min-height to event when formatted HTML is empty...
Read more >
Prevent div from overlapping using height / min-height attribute
When I use the min-height attribute, the top div overlaps the bottom divs.. but when I remove it, then the bottom divs will...
Read more >
TextClock - Android Developers
This view honors the 24-hour format system setting. As such, it is possible and ... android:minHeight, Makes the TextView be at least this...
Read more >
min-height - CSS: Cascading Style Sheets - MDN Web Docs
The min-height CSS property sets the minimum height of an element. It prevents the used value of the height property from becoming smaller...
Read more >
timeline - vis.js - A dynamic, browser based visualization library.
Name Type Default align String 'center' autoResize boolean true clickToUse boolean false
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found