2

I use Vuetify and have a question about access to styles of v-select input. Actual result: enter image description here

The desired result is to get rid of space between dots and arrow.

enter image description here

I went through the official docs, but it didn't help.

<div id="app">
  <v-app id="inspire">
    <v-container fluid>
      <v-row align="center">
        <v-col cols="1">
          <v-select
            v-model="select"
            :items="items"
            item-text="state"
            return-object
            single-line
          ></v-select>
        </v-col>
      </v-row>
    </v-container>
  </v-app>
</div>

The full code example

tadvas
  • 131
  • 1
  • 13

1 Answers1

0

You need to override the existing style of one of the nested elements.

existing style screenshot

Add this to the style (example from your codepen):

.v-select__selection.v-select__selection--comma {
  max-width: 100% !important;
  margin-right: 0 !important;
}

I'd recommend adding a specific class (e.g. wide-text-area or something) to the v-select element and specify it in the CSS so the style doesn't apply to all elements without intention.

Muge
  • 335
  • 1
  • 9