Skip to content

Commit

Permalink
Fix issues with responsive UI on the campaign page
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Mar 8, 2020
1 parent 8771dc2 commit 901c456
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/Campaign.js
Expand Up @@ -533,7 +533,7 @@ class TheFormDef extends React.PureComponent {
<hr />
<Form.Item {...formItemLayout} label="Send later?">
<Row>
<Col span={2}>
<Col lg={4}>
{getFieldDecorator("send_later")(
<Switch
disabled={this.props.formDisabled}
Expand All @@ -542,7 +542,7 @@ class TheFormDef extends React.PureComponent {
/>
)}
</Col>
<Col xs={24} sm={2}>
<Col lg={20}>
{this.state.sendLater &&
getFieldDecorator("send_at", {
initialValue:
Expand Down Expand Up @@ -681,8 +681,8 @@ class Campaign extends React.PureComponent {
render() {
return (
<section className="content campaign">
<Row>
<Col xs={24} sm={16}>
<Row gutter={[2, 16]}>
<Col span={24} md={12}>
{!this.state.record.id && <h1>Create a campaign</h1>}
{this.state.record.id && (
<div>
Expand All @@ -706,7 +706,7 @@ class Campaign extends React.PureComponent {
</div>
)}
</Col>
<Col xs={24} sm={8} className="right header-action-break">
<Col span={24} md={12} className="right header-action-break">
{!this.state.formDisabled && !this.state.loading && (
<div>
<Button
Expand Down

0 comments on commit 901c456

Please sign in to comment.