tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Inconsistent layout: Math/LaTeX blocks force narrow media width limit on entire message

Open Nihiliarch opened this issue 3 months ago • 1 comments

Is your feature request related to a problem?

Embedding a math/LaTeX formula in a message causes the message bubble to clamp to the narrow media width limit (~400px). This forcibly shrinks all accompanying text into a narrow column and adds an unnecessary horizontal scrollbar to the equation itself, even when there is plenty of screen space available.

Image

Describe the solution you'd like

Math blocks should follow the same layout rules as text and code blocks (pre), utilizing the full available adaptive width of the chat window instead of forcing a fixed media container limit on the whole message.

Describe alternatives you've considered

  1. Splitting a single message into multiple messages (sending text, code blocks, and formulas separately).

    • Why it's not viable: Breaks a cohesive thought/post into fragments, spams the chat partner with unnecessary notifications, and ruins overall readability.
  2. Manually inserting line breaks inside every formula.

    • Why it's not viable: Time-consuming, visually unappealing, and significantly degrades the readability of mathematical expressions.

Additional context

See the attached screenshots for comparison:

  • When a message contains text and a standard code block, it properly expands across the wide window layout.
  • As soon as a math/LaTeX block is present, the entire message collapses to the narrow media width, squishing the text above and forcing horizontal scrolling on the equation.

Configuration

  • Operating system: Windows 10
  • Telegram Desktop version: 7.1.2 x64
  • Installation source: Direct installer from desktop.telegram.org

Visual proof

Image Image

Nihiliarch avatar Aug 25 '26 09:08 Nihiliarch

Image

tnx

Nihiliarch avatar Sep 02 '26 12:09 Nihiliarch