From e548e2a31c30c87a4be4bb9f0684b99fb7ecd9af Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Mon, 19 Nov 2018 16:29:22 +0100 Subject: [PATCH 1/2] break project name and location details if too long --- frontend/src/containers/orders/components/OrderInfo.jsx | 4 ++-- .../src/containers/orders/style/ProcessContainer.scss | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/containers/orders/components/OrderInfo.jsx b/frontend/src/containers/orders/components/OrderInfo.jsx index 5865735..e75ca4d 100644 --- a/frontend/src/containers/orders/components/OrderInfo.jsx +++ b/frontend/src/containers/orders/components/OrderInfo.jsx @@ -80,7 +80,7 @@ class OrderInfo extends Component {
{orderTexts.labels.REFERENCE}:
- {orderInfo.reference || '-'} + {orderInfo.reference || '-'}
{orderTexts.labels.BID}:
@@ -139,7 +139,7 @@ class OrderInfo extends Component {
{orderTexts.labels.PROJECT}:
- {orderInfo.projectName || '-'} + {orderInfo.projectName || '-'}
diff --git a/frontend/src/containers/orders/style/ProcessContainer.scss b/frontend/src/containers/orders/style/ProcessContainer.scss index 55bfad9..8b70054 100644 --- a/frontend/src/containers/orders/style/ProcessContainer.scss +++ b/frontend/src/containers/orders/style/ProcessContainer.scss @@ -7,6 +7,14 @@ $link-line-height: 1.5rem; margin-top: 0.5rem; } + .reference{ + word-break: break-all; + } + + .project-name{ + word-break: break-all; + } + .info-color { margin-top: 0.2rem; padding-left: 0.2rem; From 3df6397280d8abb8ccdbcadfae82bb5a15a136b2 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Mon, 19 Nov 2018 16:30:04 +0100 Subject: [PATCH 2/2] remove comment --- .../app/plugins/wiaas/includes/api/class-wiaas-support-api.php | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/app/plugins/wiaas/includes/api/class-wiaas-support-api.php b/backend/app/plugins/wiaas/includes/api/class-wiaas-support-api.php index 475d0f2..e3f87b9 100644 --- a/backend/app/plugins/wiaas/includes/api/class-wiaas-support-api.php +++ b/backend/app/plugins/wiaas/includes/api/class-wiaas-support-api.php @@ -18,7 +18,6 @@ class Wiaas_Support_Api { 'methods' => 'POST', 'callback' => array(__CLASS__, 'send_support_email'), 'permission_callback' => 'is_user_logged_in', - //this.props.order, this.props.order.packages, this.props.supportText 'args' => array( 'id' => array( 'description' => __('Order ID.', 'wiaas'),