Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Development #6

Merged
merged 11 commits into from
May 1, 2023
11 changes: 6 additions & 5 deletions ui/src/components/Row/Row.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,12 @@ export default {
this.boxedInFullWidthStatus = this.deviceWidth <= this.defaultOptions.boxedWidth + this.getPaddingOfBoxedInFullWidth()
},
getPaddingOfBoxedInFullWidth() {
if (this.rowOptions.paddingOfBoxedInFullWidth && typeof this.rowOptions.paddingOfBoxedInFullWidth === 'string') {
return Number(this.rowOptions.paddingOfBoxedInFullWidth.split('px')[0])
} else {
return 0
}
const padding = this.rowOptions.paddingOfBoxedInFullWidth.split('px')
if (padding && padding.length > 0) {
return Number(padding[0])
} else {
return 0
}
},
onSubmitElement(widget) {
const widgetData = widget.item.type === 'widget' ? widget.item : widget.item.info
Expand Down