diff --git a/app/src/frontend/building/data-container.tsx b/app/src/frontend/building/data-container.tsx index 988906b9..1547f9fc 100644 --- a/app/src/frontend/building/data-container.tsx +++ b/app/src/frontend/building/data-container.tsx @@ -211,7 +211,6 @@ const withCopyEdit = (WrappedComponent) => { action={`/edit/${this.props.slug}/${this.props.building.building_id}`} method="POST" onSubmit={this.handleSubmit}> - { (this.props.inactive) ? { /> : null } + { + (this.props.mode === 'edit' && !this.props.inactive) ? + + + { + this.props.slug === 'like' ? // special-case for likes + null : +
+ +
+ } +
+ : null + } { onLike={this.handleLike} onUpdate={this.handleUpdate} /> - { - (this.props.mode === 'edit' && !this.props.inactive) ? - - { - this.props.slug === 'like' ? // special-case for likes - null : -
- -
- } -
- : null - } :
diff --git a/app/src/frontend/styles/forms.css b/app/src/frontend/styles/forms.css index 4a8d61a8..d8916c50 100644 --- a/app/src/frontend/styles/forms.css +++ b/app/src/frontend/styles/forms.css @@ -28,7 +28,7 @@ label { } .buttons-container.with-space { margin-top: 1rem; - padding: 0 0.75rem; + /* padding: 0 0.75rem; */ } .buttons-container .btn { margin-bottom: 0.25rem;