Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

How to wrap cards across rows? #498

Closed
@kpgarrod

Description

@kpgarrod

I have an unknown number of cards, with a width of say 300px. If the cards are too wide to fit in a row, I want them to automatically wrap onto the next row. This is my best effort:

<div layout="horizontal">
  <md-card ng-repeat="resourceType in resourceTypes"
           flex
           layout="vertical"
           ng-click="openDialog(resourceType.type)"
           class="cc-basic-card"> <!-- Just adds a min-height and min-width -->
    <h2>{{resourceType.name}}</h2>
    <p>{{resourceType.description}}</p>
 </md-card>
</div>

It doesn't wrap. Is there a simple way of doing this please?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions