Skip to content

Uploaded images cause layout shifts #323

@rafaucau

Description

@rafaucau

Bug Report

Current Behavior
Uploaded images cause the layout to shift which leads to the user seeing a different post than in the link.

Expected Behavior
The <img> should have width and height attributes. This way, the browser knows what size the image will be before it loads it which will prevent the layout from shifting.

Screenshots

A post containing an image. It jumps twice. After loading the image, it jumps to another post:

2022-08-07.12-39-34_Trim.mp4

Post near the post containing the image:

2022-08-07.12-40-05.mp4

Environment

  • Extension version: 1.2.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions