Skip to content

I can't set the width of the content if the height is limited. #92

@danik9711

Description

@danik9711

I limit the height, for example, using max-height. I'm trying to set the width of the fit-content, then black bars are added to narrow images, and wide images go beyond the boundaries of the container. I want to get the following result: the height is limited to a certain value, the width adjusts to the width of the image without black bars.

Actual:
Image
Expecting:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions