Skip to content

Is it possible to keep the aspect ratio on different screen sizes? #354

@alammers

Description

@alammers

Hello there! I have a question about the responsiveness of gridstack :) Is it possible to keep the aspect ratio on different screen sizes?

At the moment we are using this wonderful plugin to create a dashboard that can contain all kinds of cards. The content of some of these cards rely heavily on a certain aspect ratio. If this aspect ratio changes, the content of that card is all over the place.
This problem happens when we have screens on a different resolution. Existing dashboards filled with cards are very responsive when it comes to width, but the height stays the same. This results in a different aspect ratio and thus cards that don't look good.

A small example of what happens:

image

The grey border is the resolution that shows the dashboard best. With a smaller resolution, the layout with the red border happens. Behaviour that we are looking for is shown with the green border

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    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