Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

328
Vistas
Angular Material Cards in a Grid via NgFor, if one card changes height, then all cards in the same row do as well. How to disable this behavior?

I have a grid in which I create multiple mat-cards via ngFor. These mat cards contain a button each which expands the card itself.

.outerDiv{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 5fr));
    grid-column-gap: 20px;
    align-items: stretch;
  }

.innerMatCardContainer {
    box-shadow: 5px 5px 3px -3px var(--hailoDarkGray);
    border-radius: 2px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
  }

The problem is, that if one card is expanded, then all cards in that row also expand.

Is there a way to disable this behavior, so as to achieve a row of mat cards, each being able to be differently sized?

Here is a demonstrative graphic of the issue:

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda