element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.25k stars 2.01k forks source link

Editing a code block drastically reduces its width #28458

Open dkasak opened 1 week ago

dkasak commented 1 week ago

Steps to reproduce

  1. Create a code block, e.g.
int main(void) {}
  1. Edit it

Outcome

What did you expect?

The code block should retain its size.

What happened instead?

The code block is drastically reduced in width due to the (edited) marker being inserted beside it.

image

Operating system

Arch Linux

Browser information

Firefox 132.0.2

URL for webapp

No response

Application version

Element version: 1.11.85 Crypto version: Rust SDK 0.7.2 (517d99b), Vodozemac 0.7.0

Homeserver

No response

Will you send logs?

No