Reputation: 5038
I have a block of code with the recommended layout as per the vuetify docs and for the life of me can't figure out why whatever I do my <v-flex>
does not respond to offset
. Below is the code with a screenshot:
<v-layout v-show="expanded" v-for="(row, index) of queryCopy.query_parts" :key="index" align-baseline justify-start row fill-height wrap>
<v-flex offset-xs7 sm1 mx-3>
<v-select
class="whtsp-nowrap"
label="Condition"
v-model="row.condition"
:items="options.condition"
item-text="display"
item-value="value"
@input="isRowComplete"
></v-select>
</v-flex>
<v-flex sm1 mx-3>
<v-select
label="Field"
:items="options.fields"
item-text="display"
item-value="value"
v-model="row.field"
@input="isRowComplete"
></v-select>
</v-flex>
<v-flex sm1 mx-3>
<v-select
label="Operation"
v-model="row.operator"
:items="options.operator"
item-text="display"
item-value="value"
@input="isRowComplete"
></v-select>
</v-flex>
<v-flex sm2 mx-3>
<v-text-field
label="Search Value"
v-model.lazy="row.value"
@input="isRowComplete"
></v-text-field>
</v-flex>
<v-flex shrink>
<v-btn @click="removeQueryRow(index)" class="mr-0"small icon>
<v-icon color="grayDE">clear</v-icon>
</v-btn>
</v-flex>
<v-flex>
<v-btn @click="addQueryRow" class="ma-0" small icon>
<v-icon color="primary">add</v-icon>
</v-btn>
</v-flex>
</v-layout>
my question is about the first flex box that has offset-xs7
the screen is sm
so it should apply (I tried changing it as well to no avail).
The condition dropdown should be offset to be under "query conditions"
Upvotes: 2
Views: 2644