Skip to content

Commit e45d211

Browse files
Merge pull request #497 from lionel-bijaoui/lb_implement_486
Implement changes from PR #486
2 parents 19b42e3 + cd4968c commit e45d211

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dev/projects/full/schema.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default {
4444
required: true,
4545
help: "First name of user",
4646
validator: validators.string,
47-
fieldClasses: "half-width",
47+
styleClasses: "half-width col-xs-12 col-sm-6",
4848
fieldOptions: {
4949
inputType: "text"
5050
},
@@ -64,7 +64,7 @@ export default {
6464
placeholder: "User's last name",
6565
featured: true,
6666
required: true,
67-
fieldClasses: "half-width",
67+
styleClasses: "half-width col-xs-12 col-sm-6",
6868
fieldOptions: {
6969
inputType: "text"
7070
},

src/formElement.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,13 @@ export default {
132132
</script>
133133
<style lang="scss">
134134
$errorColor: #f00;
135-
135+
.form-element:not([class*=" col-"]) {
136+
width: 100%;
137+
}
136138
.form-element {
137139
display: inline-block;
138140
vertical-align: top;
139-
width: 100%;
141+
// width: 100%;
140142
// margin: 0.5rem 0.26rem;
141143
margin-bottom: 1rem;
142144

0 commit comments

Comments
 (0)