Skip to content

Commit 7bd84cf

Browse files
author
Lionel Bijaoui
committed
Implement PR #486
1 parent 91c662b commit 7bd84cf

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dev/projects/full/schema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
required: true,
4444
help: "First name of user",
4545
validator: validators.string,
46-
fieldClasses: "half-width",
46+
styleClasses: "half-width col-xs-12 col-sm-6",
4747
fieldOptions: {
4848
inputType: "text"
4949
},
@@ -61,7 +61,7 @@ export default {
6161
placeholder: "User's last name",
6262
featured: true,
6363
required: true,
64-
fieldClasses: "half-width",
64+
styleClasses: "half-width col-xs-12 col-sm-6",
6565
fieldOptions: {
6666
inputType: "text"
6767
},

src/formElement.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ export default {
141141
</script>
142142
<style lang="scss">
143143
$errorColor: #f00;
144-
144+
.form-group:not([class*=" col-"]) {
145+
width: 100%;
146+
}
145147
.form-element {
146148
display: inline-block;
147149
vertical-align: top;
148-
width: 100%;
150+
// width: 100%;
149151
// margin: 0.5rem 0.26rem;
150152
margin-bottom: 1rem;
151153

0 commit comments

Comments
 (0)