From 5dbc869b386af20a42c444410532eb3ff30e4836 Mon Sep 17 00:00:00 2001 From: Nick Ng Date: Wed, 12 Aug 2020 12:48:32 +0800 Subject: [PATCH] UI cleanup --- .../components/content/DashboardComponent.js | 32 +++++++++++++------ .../content/DiagnosticsComponent.js | 27 +++++++++------- .../src/components/script/ScriptControl.js | 4 +-- 3 files changed, 41 insertions(+), 22 deletions(-) diff --git a/experiments/WebUI/src/components/content/DashboardComponent.js b/experiments/WebUI/src/components/content/DashboardComponent.js index b85cf7a..31cae01 100644 --- a/experiments/WebUI/src/components/content/DashboardComponent.js +++ b/experiments/WebUI/src/components/content/DashboardComponent.js @@ -11,11 +11,25 @@ import FrontIcon from "../../assets/img/submarine-front-view.svg"; import D3BearingComponent from "./D3BearingComponent"; import D3GaugeComponent from "./D3GaugeComponent"; +const TITLE = "Dashboard"; + const styles = StyleSheet.create({ - container0: { - padding: "1em", - }, container: { + width: "100%", + height: "100vh", + display: "flex", + flexDirection: "column", + }, + content: { + flexGrow: 1, + flexShrink: 1, + flexBasis: "auto", + height: "100%", + overflowX: "auto", + overflowY: "auto", + }, + gaugesContainer: { + padding: "1em", display: "flex", flexDirection: "row", flexWrap: "wrap", @@ -154,9 +168,9 @@ class DashboardComponent render() { return ( -
+
- Dashboard + {TITLE}