Skip to content

Commit

Permalink
refactor row (#6)
Browse files Browse the repository at this point in the history
* pageBuilder row media

* pageBuilder row style

* pageBuilder row style

* pageBuilder row style

* pageBuilder row style

* pageBuilder row style

* pageBuilder row style

* pageBuilder row style

* pageBuilder row

* pageBuilder row
  • Loading branch information
ali-khoshnevisan authored May 1, 2023
1 parent 07297bf commit ab60ef4
Showing 1 changed file with 6 additions and 5 deletions.
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

0 comments on commit ab60ef4

Please # to comment.