Skip to content

Commit

Permalink
Replaces text-right with justify-content for Crate button
Browse files Browse the repository at this point in the history
  • Loading branch information
earlyriser committed Nov 14, 2019
1 parent f893bb3 commit a7988f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/components/form.js
Expand Up @@ -78,16 +78,17 @@ class FormElement extends React.PureComponent {

return (
<FormGroup
isCompact={this.props.isCompact}
className={cx(this.props.className)}>
isCompact={this.props.isCompact}>
{hasLabel &&
<Label
id={this.props.id}
size={offset}
title={this.props.title}
value={this.props.label}/>}
<div className={
cx(`col-${this.props.size}`, { [`col-offset-${offset}`]: !hasLabel })
cx(`col-${this.props.size}`,
this.props.className,
{ [`col-offset-${offset}`]: !hasLabel })
}>
{this.props.children}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/template/editor.js
Expand Up @@ -209,7 +209,7 @@ class TemplateEditor extends React.PureComponent {
tabIndex={0} onChange={this.handleTemplateUpdate}
size={9}/>
{isPristine &&
<FormElement className="text-right">
<FormElement className="flex-row justify-content-end">
<button
className="btn btn-primary min-width"
disabled={!this.isValid}
Expand Down

0 comments on commit a7988f5

Please sign in to comment.