From 05e4da178025b4f31366210d044894ebfa21df21 Mon Sep 17 00:00:00 2001 From: nipunnadeen Date: Wed, 28 Aug 2019 00:20:35 +0530 Subject: [PATCH] Fix the responsive issues of the device-mgt react app --- .../AppDetailsDrawer/AppDetailsDrawer.js | 2 +- .../src/pages/dashboard/Dashboard.css | 19 +++++- .../src/pages/dashboard/Dashboard.js | 2 +- .../src/pages/dashboard/Dashboard.css | 31 ++++++--- .../src/pages/dashboard/Dashboard.js | 3 +- .../react-app/src/App.css | 50 -------------- .../src/pages/Dashboard/Dashboard.css | 68 +++++++++++++++++++ .../src/pages/Dashboard/Dashboard.js | 28 +++++--- .../src/pages/Dashboard/Dashboard.less | 33 --------- 9 files changed, 131 insertions(+), 105 deletions(-) create mode 100644 components/device-mgt/io.entgra.device.mgt.ui/react-app/src/pages/Dashboard/Dashboard.css delete mode 100644 components/device-mgt/io.entgra.device.mgt.ui/react-app/src/pages/Dashboard/Dashboard.less diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/AppDetailsDrawer/AppDetailsDrawer.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/AppDetailsDrawer/AppDetailsDrawer.js index 5110428da5d..b013124767b 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/AppDetailsDrawer/AppDetailsDrawer.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/AppDetailsDrawer/AppDetailsDrawer.js @@ -69,7 +69,7 @@ const formats = [ class AppDetailsDrawer extends React.Component { constructor(props) { super(props); - const drawerWidth = window.innerWidth<=768 ? '80%' : '40%'; + const drawerWidth = window.innerWidth<=770 ? '80%' : '40%'; this.state = { loading: false, diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.css b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.css index ba4ccf364c3..c0484b7a419 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.css +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.css @@ -46,7 +46,7 @@ font-size: 27px; } -@media screen and (max-width: 768px) { +@media screen and (max-width: 660px) { .web-layout{ visibility: hidden; @@ -77,16 +77,31 @@ } -@media screen and (max-height: 500px) { +@media screen and (max-height: 350px) { + .mobile-menu-button{ margin-top: 2%; } .dashboard-body{ margin-top: 9%; } + } +@media only screen and (min-width: 760px) { + + @media screen and (max-width: 1030px) { + Footer{ + margin-bottom: 43%; + } + } +} +@media only screen and (min-width: 1030px) { + Footer{ + margin-bottom: 5%; + } +} diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js index 40b7ba5ec4b..17fe1fc9f8b 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js @@ -178,7 +178,7 @@ class Dashboard extends React.Component { ))} -