Skip to content

What is the right way to make responsive layout? #981

@sunshineo

Description

@sunshineo

Bug, feature request, or proposal:

Question

What is the expected behavior?

I have a bunch of md-card under md-content. I used to use ng2-material

<md-content class="md-padding" layout="row" layout-wrap>
    <md-card *ngFor="let restaurant of restaurants" flex-gt-md="45" flex-md="100" flex-sm="100" flex-xs="100">
        <restaurant-card [restaurant]="restaurant"></restaurant-card>
    </md-card>
</md-content>

They used to have multiple cards on one row when screen is wide because of the flex settings. Now I changed to use angular2-material directly, these flex settings no longer works.

How should I manage the responsive layouts now? Thank you very much!

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