From e01f269263e2f444976876b8c94008de18111d96 Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Wed, 15 Dec 2021 17:00:34 -0800 Subject: [PATCH] (ui): Update styles for MetricsFetchControls --- ui/src/views/MetricsView.tsx | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/ui/src/views/MetricsView.tsx b/ui/src/views/MetricsView.tsx index 0d56502..053b0b3 100644 --- a/ui/src/views/MetricsView.tsx +++ b/ui/src/views/MetricsView.tsx @@ -18,12 +18,20 @@ import { PrometheusMetricsResponse } from "../api"; const useStyles = makeStyles((theme) => ({ container: { + marginTop: 30, paddingTop: theme.spacing(4), paddingBottom: theme.spacing(4), }, controlsContainer: { display: "flex", justifyContent: "flex-end", + position: "fixed", + background: theme.palette.background.paper, + zIndex: theme.zIndex.appBar, + right: 0, + top: 64, // app-bar height + width: "100%", + padding: theme.spacing(2), }, chartInfo: { display: "flex", @@ -109,17 +117,15 @@ function MetricsView(props: Props) { return ( +
+ +
- -
- -
-
{data?.queue_size && ( prettyBytes(val)} + yAxisTickFormatter={(val: number) => { + try { + return prettyBytes(val); + } catch (error) { + return val + "B"; + } + }} /> )}