From e792c48f6deea012302ba9caa9cde9bd0f597b24 Mon Sep 17 00:00:00 2001 From: Rajat Dabade Date: Fri, 29 Dec 2023 16:05:46 +0530 Subject: [PATCH] [Refactor]: css fixes (#4248) --- .../RightContainer/Threshold/Threshold.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsx b/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsx index b64c5b26e6..a35acabf64 100644 --- a/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsx +++ b/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsx @@ -27,6 +27,10 @@ import CustomColor from './CustomColor'; import ShowCaseValue from './ShowCaseValue'; import { ThresholdProps } from './types'; +const wrapStyle = { + flexWrap: 'wrap', +} as React.CSSProperties; + function Threshold({ index, thresholdOperator = '>', @@ -220,7 +224,7 @@ function Threshold({ } > {selectedGraph === PANEL_TYPES.TIME_SERIES && ( - <> + Label {isEditMode ? ( )} - + )} {(selectedGraph === PANEL_TYPES.VALUE || selectedGraph === PANEL_TYPES.TABLE) && ( @@ -243,7 +247,7 @@ function Threshold({ {isEditMode ? ( <> {selectedGraph === PANEL_TYPES.TABLE && ( - +