Select increasing width when choosing item

Asked

Viewed 78 times

0

I’m having trouble with this code:

    <v-row>          
      <v-col class="d-flex align-center" cols="12">
        <p>Situação familiar:</p>
        <v-select
          v-model="selectedFamilySituation"
          :items="itemsFamilySituation"
          solo
          dense
        ></v-select>
      </v-col>
    </v-row>

In short, I have a label followed by a select. The problem is that one of the items in select is a very large string, so every time I select this item select increases its width and is thus misaligned.

inserir a descrição da imagem aqui

How can I fix this?

1 answer

0

Guys, I got it. The label that comes before the select has a fixed size of 98px, so when I choose the item with giant string, the width of the select increases the 98px that the label occupies.

I put it on select:

style="max-width: calc(100% - 98px);"

Ready :D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.