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

217
Vistas
I'm trying to make expanding cards using Vue, the problem is that when expanding a card, the cards on the right create an empty space

I'm trying to make expanding cards using Vue, the problem is that when expanding a card, the cards on the right create an empty space,the entire bottom row goes down, and I just wanted the card directly below it to go down, not all.

This is the way it is currently: 1

This is the way I want to: 2

Here is the part of the code that I believe controls this, or would it be in the expansion part?

<v-container class="pt-0 mt-0">
  <v-layout row wrap>
    <v-flex
      xs12
      md6
      lg3
      v-for="stateCard in filteredSearch"
      :key="stateCard.name"
    >
      <MakeTheCard :item="infoCard" />
        
      
    </v-flex>
  </v-layout>
</v-container>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I think that you have a CSS problem rather than Vue.

One approach is to make a flex container with columns, each containing X amount of elements.

like so:

  <div class="row">
    <div class="col">
      <Card v-for="card in 2" :key="card" />
    </div>
    <div class="col">
      <Card v-for="card in 2" :key="card" />
    </div>
    <div class="col">
      <Card v-for="card in 1" :key="card" />
    </div>
  </div>

Just made a demo for you: https://codesandbox.io/s/withered-leaf-mv8lp

about 4 years ago · Juan Pablo Isaza Denunciar
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