diff --git a/smart-hut/src/components/dashboard/devices/styleComponents.js b/smart-hut/src/components/dashboard/devices/styleComponents.js index 1eba7d1..5c6c927 100644 --- a/smart-hut/src/components/dashboard/devices/styleComponents.js +++ b/smart-hut/src/components/dashboard/devices/styleComponents.js @@ -18,10 +18,17 @@ export const editButtonStyle = { }; export const panelStyle = { - position: "relative", backgroundColor: "#fafafa", - height: "100vh", - width: "auto", + height: "85vh", + padding: "0rem 3rem", + color: "#000000", + overflow: "auto", + maxHeight: "75vh", +}; + +export const mobilePanelStyle = { + backgroundColor: "#fafafa", + minHeight: "100vh", padding: "0rem 3rem", color: "#000000", }; diff --git a/smart-hut/src/views/Dashboard.js b/smart-hut/src/views/Dashboard.js index 0be3f8d..17a1367 100644 --- a/smart-hut/src/views/Dashboard.js +++ b/smart-hut/src/views/Dashboard.js @@ -5,7 +5,10 @@ import AutomationsPanel from "../components/dashboard/AutomationsPanel"; import Navbar from "./Navbar"; import MyHeader from "../components/HeaderController"; import { Grid, Responsive, Button } from "semantic-ui-react"; -import { panelStyle } from "../components/dashboard/devices/styleComponents"; +import { + panelStyle, + mobilePanelStyle, +} from "../components/dashboard/devices/styleComponents"; import { RemoteService } from "../remote"; import { connect } from "react-redux"; @@ -45,7 +48,7 @@ class Dashboard extends Component { render() { return ( -
+
@@ -53,27 +56,31 @@ class Dashboard extends Component { - - + + +