Skip to content

Commit

Permalink
fix(form-builder): add padding to the AssetBackground
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Mar 4, 2021
1 parent c6a9a3a commit ba22132
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export default class FileInput extends React.PureComponent<Props, FileInputState
onFocus={this.handleFileTargetFocus}
onBlur={this.handleFileTargetBlur}
>
<AssetBackground align="center" justify="center">
<AssetBackground align="center" justify="center" padding={3}>
{value?._upload && this.renderUploadState(value._upload)}
{!value?._upload && value?.asset && this.renderAsset()}
{!value?._upload && !value?.asset && this.renderUploadPlaceholder()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ export default class ImageInput extends React.PureComponent<Props, ImageInputSta
onFocus={this.handleFileTargetFocus}
onBlur={this.handleFileTargetBlur}
>
<AssetBackground align="center" justify="center">
<AssetBackground align="center" justify="center" padding={3}>
{value?._upload && this.renderUploadState(value._upload)}
{!value?._upload && value?.asset && this.renderAsset()}
{!value?._upload && !value?.asset && this.renderUploadPlaceholder()}
Expand Down

0 comments on commit ba22132

Please sign in to comment.