From 3e5a6468e7c7fba31ed7c17ba673214f743d24f4 Mon Sep 17 00:00:00 2001 From: Vivek R Date: Mon, 9 Sep 2019 00:08:55 +0530 Subject: [PATCH] fix: responsive layour fixes for table, modal and form fields --- README.md | 1 - frontend/src/Campaign.js | 10 +++---- frontend/src/Campaigns.js | 4 +-- frontend/src/Import.js | 6 ++-- frontend/src/Layout.js | 2 +- frontend/src/Lists.js | 2 +- frontend/src/Subscriber.js | 10 ++++--- frontend/src/Subscribers.js | 22 +++++++-------- frontend/src/Templates.js | 4 +-- frontend/src/index.css | 56 ++++++++++++++++++++++++++++++++++--- 10 files changed, 82 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 35a3a8e85..6748a3b80 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,6 @@ Alternatively, to run a demo of listmonk, you can quickly spin up a container `d - User auth, management, permissions - Ability to write raw campaign logs to a target - Analytics views and reports -- Make Ant design UI components responsive - Better widgets on dashboard - Tests! diff --git a/frontend/src/Campaign.js b/frontend/src/Campaign.js index 582aa4e18..c2352826e 100644 --- a/frontend/src/Campaign.js +++ b/frontend/src/Campaign.js @@ -28,8 +28,8 @@ import Delta from "quill-delta" import "react-quill/dist/quill.snow.css" const formItemLayout = { - labelCol: { xs: { span: 16 }, sm: { span: 4 } }, - wrapperCol: { xs: { span: 16 }, sm: { span: 10 } } + labelCol: { xs: { span: 16 }, sm: { span: 10 }, md: { span: 4 } }, + wrapperCol: { xs: { span: 16 }, sm: { span: 14 }, md: { span: 10 } } } class Editor extends React.PureComponent { @@ -521,7 +521,7 @@ class TheFormDef extends React.PureComponent { /> )} - + {this.state.sendLater && getFieldDecorator("send_at", { initialValue: @@ -656,7 +656,7 @@ class Campaign extends React.PureComponent { return (
- + {!this.state.record.id &&

Create a campaign

} {this.state.record.id && (
@@ -675,7 +675,7 @@ class Campaign extends React.PureComponent {
)} - + {!this.state.formDisabled && !this.state.loading && (
)} - + - + diff --git a/frontend/src/Subscribers.js b/frontend/src/Subscribers.js index b18556234..7b8d7715c 100644 --- a/frontend/src/Subscribers.js +++ b/frontend/src/Subscribers.js @@ -583,10 +583,10 @@ class Subscribers extends React.PureComponent { } return ( -
+
- +

Subscribers {this.props.data[cs.ModelSubscribers].total > 0 && ( @@ -597,7 +597,7 @@ class Subscribers extends React.PureComponent { )}

- +