From 3bc219c926f0245372aa248e02fda21bc25b9b4b Mon Sep 17 00:00:00 2001 From: britea Date: Tue, 14 Apr 2020 22:56:00 +0200 Subject: [PATCH] New style for tabs --- .../dashboard/devices/styleComponents.js | 13 +++-- smart-hut/src/views/Dashboard.js | 53 ++++++++++++++++--- 2 files changed, 55 insertions(+), 11 deletions(-) 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 { - - + + +