diff --git a/src/App.css b/src/App.css
index 77dc28756d..11d49d8eda 100644
--- a/src/App.css
+++ b/src/App.css
@@ -27,6 +27,11 @@ button.execute-btn {
border-left: 1px solid #dee2e6;
border-right: 1px solid #dee2e6;
border-bottom: 1px solid #dee2e6;
+ padding: 10px;
+}
+
+.tab-content .alert {
+ margin-bottom: 0;
}
.data-table.table {
@@ -67,7 +72,7 @@ button.execute-btn {
}
.graph-controls {
- padding: 15px 0 10px 10px;
+ margin-bottom: 10px;
}
.graph-controls input {
@@ -99,10 +104,6 @@ button.execute-btn {
color: #495057;
}
-.tabpane-alert {
- margin: 10px;
-}
-
.graph-legend {
margin: 15px 0 15px 25px;
}
diff --git a/src/App.js b/src/App.js
index eddbd92c9f..0affe24d0c 100755
--- a/src/App.js
+++ b/src/App.js
@@ -563,17 +563,6 @@ class ExpressionInput extends Component {
}
}
-function TabPaneAlert(props) {
- return (
- <>
- {/* Without the following
hack, giving the
any top margin
- makes the entire tab pane look detached by that margin. */}
-
- {props.children}
- >
- );
-}
-
class DataTable extends PureComponent {
limitSeries(series) {
const maxSeries = 10000;
@@ -588,11 +577,11 @@ class DataTable extends PureComponent {
const data = this.props.data;
if (data === null) {
- return No data queried yet;
+ return No data queried yet;
}
if (data.result === null || data.result.length === 0) {
- return Empty query result;
+ return Empty query result;
}
let rows = [];
@@ -619,16 +608,16 @@ class DataTable extends PureComponent {
rows.push(scalar | {data.result[1]} |
);
break;
default:
- return Unsupported result value type '{data.resultType}';
+ return Unsupported result value type '{data.resultType}';
}
}
return (
<>
{data.result.length !== limitedSeries.length &&
-
+
Warning: Fetched {data.result.length} metrics, only displaying first {limitedSeries.length}.
-
+
}