Skip to content

Library component sidebar preview messes up aspect ratio of images #1465

Closed
@bradenmacdonald

Description

@bradenmacdonald

When an image is included in a Text component with an explicit width and height, like TinyMCE does by default:

<img src="http://studio.local.openedx.io:8001/library_assets/component_versions/f12c83a3-2aab-4599-a145-eab778cc62a4/static/XBlock%20Distribution.png" alt="Example" width="1294" height="837" />

Then when it appears in the preview, it will have the specified height but the wrong width, resulting in a distorted aspect ratio:

Screenshot 2024-11-06 at 12 01 40 PM

Metadata

Metadata

Assignees

Labels

bugReport of or fix for something that isn't working as intended

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions