Skip to content

Media inititally loads too small in the timeline #34148

Description

@parfaitcake

Steps to reproduce

Navigate to any room with media in it.
Observe how media first loads when not cached.

Outcome

What did you expect?

Media should load with the aspec ratio calculated via the event's width and height, and maximize their size in the timeline.

What happened instead?

Media loads far too small, aspect ratio seems to be applied correctly, see image.

Image

Media size in settings (default/large) does not seem to affect this behavior, it only gets the correct size when the image starts loading, the <img> sets the correct size.

Operating system

macOS, NixOS

Browser information

Chrome Version 149.0.7827.200

URL for webapp

No response

Application version

Element version: 1.12.23-rc.0

Homeserver

Synapse 1.155.0

Will you send logs?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-MediaA-TimelineS-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions