From 4e66d0eb69c9d5d756faf7bea802fda4824c3f3c Mon Sep 17 00:00:00 2001 From: rbokhorst <rbokhorst@astron.nl> Date: Tue, 13 Nov 2018 15:05:13 +0000 Subject: [PATCH] OSB-31: fixed some styling --- .../maintenancedb_view/src/components/StationStatistics.js | 5 +++-- .../maintenancedb_view/src/components/StationTestView.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationStatistics.js b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationStatistics.js index 873627f3c93..c982a0bdb06 100644 --- a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationStatistics.js +++ b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationStatistics.js @@ -195,7 +195,8 @@ class StationStatisticsC extends Component { <Navbar className="react-grid-item-header justify-content-between" style={{ - padding: "0" + padding: "0", + zIndex: 1000 }}> <NavbarBrand style={{ padding: "0" @@ -206,7 +207,7 @@ class StationStatisticsC extends Component { <ToolBar style={{ padding: "0" }} - histogramType={this.state.histogramType} + histogramType={this.state.histogramType} switchHistogramEvent={this.onSwitchHistogramType}/> </Navbar> <div className="react-grid-item-body" id="plot" ref={this.ref}> diff --git a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestView.js b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestView.js index b54f30b0b98..3d128476f18 100644 --- a/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestView.js +++ b/LCU/Maintenance/MDB_WebView/maintenancedb_view/src/components/StationTestView.js @@ -2,7 +2,7 @@ import React, { Component } from 'react'; import {connect} from "react-redux"; -import {setChildPanelData} from '../redux/actions/stationOverviewPageActions' +import {setChildPanelData, unpinChildPanelData} from '../redux/actions/stationOverviewPageActions' import { Table, @@ -219,7 +219,8 @@ class RTSMSummaryLine extends Component { renderTestSummaryLine(data, component_id_list){ const result = component_id_list.map((item, key) => { if(data[item] > 0){ - return (<td key={key} className={'stv-rtsm-summary-badge'}>{data[item].toFixed(0) + '%'} </td> ); + let perc = Math.ceil(data[item]); + return (<td key={key} className={'stv-rtsm-summary-badge'}>{perc + '%'} </td> ); }else{ return <td></td>; } -- GitLab