Buefy version: 0.5.3
Vuejs version: 2.4.4
OS/Browser: Linux/Chrome 61.0.3163.100
I'm trying to correctly group an input and an autocomplete with a switch in the same line, however I cant manage to find the correct way to combine those.
<b-field grouped group-multiline>
<b-field expanded>
<b-input
type="text"
v-model="modelData.title"
placeholder="Titel"
required>
</b-input>
</b-field>
<div class="control is-flex">
<b-switch v-model="modelData.priority">Priorit盲t</b-switch>
</div>
</b-field>
Displays like this:

As you can see, the spacing between the Input and the button is not correct.
<b-field grouped group-multiline>
<div class="control is-flex">
<b-switch v-model="modelData.approved">Genehmigt</b-switch>
</div>
<b-field expanded>
<b-autocomplete
placeholder="Verantwortlich"
field="name">
</b-autocomplete>
</b-field>
</b-field>
Displays like this:

As you can see, the button is not centered.
Have correct spacing
Has wrong spacing
@Kaeltis You have to remove div wrapper from bSwitch.
For example (first case):
<b-field grouped group-multiline>
<b-field expanded>
<b-input
type="text"
v-model="modelData.title"
placeholder="Titel"
required>
</b-input>
</b-field>
<b-switch class="switch-right" v-model="modelData.priority">Priorit盲t</b-switch>
</b-field>
<style>
.switch-right {
margin-left: 0.75rem;
margin-bottom: 0.75rem;
}
</style>
For example (second case):
<b-field grouped group-multiline>
<b-switch class="switch-left" v-model="modelData.approved">Genehmigt</b-switch>
<b-field expanded>
<b-autocomplete
placeholder="Verantwortlich"
field="name">
</b-autocomplete>
</b-field>
</b-field>
<style>
.switch-left {
margin-left: 0.75rem;
}
</style>
Thanks, it's working! However if the b-field shows a validation error, the switch isn't in the correct height anymore.
@Kaeltis It was an example. You have to play with the styles or show error in an other way.