Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

208
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda