From b038b8cad7dd5baafe7b28c08e9675ad26a588e3 Mon Sep 17 00:00:00 2001 From: Peter Bull Hove Date: Thu, 4 Apr 2024 14:05:37 +0200 Subject: [PATCH] feat: more styling --- .../Components/Bridging/InputContainer.tsx | 179 ++++++++++-------- web/src/Components/MainBody.tsx | 2 +- 2 files changed, 101 insertions(+), 80 deletions(-) diff --git a/web/src/Components/Bridging/InputContainer.tsx b/web/src/Components/Bridging/InputContainer.tsx index cba8b6f..6e38040 100644 --- a/web/src/Components/Bridging/InputContainer.tsx +++ b/web/src/Components/Bridging/InputContainer.tsx @@ -4,6 +4,7 @@ import { BridgingOption, CeramicDiscsValues } from '../../Enums' import { findDValue } from '../../Utils' import { GraphData } from '../../Types' import { Variants } from '@equinor/eds-core-react/dist/types/components/types' +import { colors } from '../../colors' type InputContainerProps = { mode: BridgingOption @@ -39,97 +40,117 @@ const InputContainer = ({ backgroundColor: 'white', borderRadius: '0.5rem', padding: '0.5rem', - marginBlockStart: '1rem', }} > - Bridging options - Bridging based on: - - - - +
+ Bridging options + Bridging based on: + - - - -
- {mode === BridgingOption.CERAMIC_DISCS ? ( -
- {/* */} - onBridgeValueChange(event.target.value)} - id={'ceramic-disk-selector'} - label={'Disk Size'} - meta={'microns'} - > - {CeramicDiscsValues.map((value, index) => { - return ( - - ) - })} - - {/* microns */} -
- ) : ( - onBridgeValueChange(event.target.value)} - variant={bridgeValueVariant} - helperText={bridgeValueHelperText} + - )} + + + + + +
+ {mode === BridgingOption.CERAMIC_DISCS ? ( +
+ {/* */} + onBridgeValueChange(event.target.value)} + id={'ceramic-disk-selector'} + label={'Disk Size'} + meta={'microns'} + > + {CeramicDiscsValues.map((value, index) => { + return ( + + ) + })} + + {/* microns */} +
+ ) : ( + onBridgeValueChange(event.target.value)} + variant={bridgeValueVariant} + helperText={bridgeValueHelperText} + /> + )} +
{optimalBridgeGraphData.length > 0 && ( -
+
Optimal Bridge: -

- D10: {findDValue(optimalBridgeGraphData, 10, 'Bridge')} - {'\u00B5m'} -

-

- D50: {findDValue(optimalBridgeGraphData, 50, 'Bridge')} - {'\u00B5m'} -

-

- D90: {findDValue(optimalBridgeGraphData, 90, 'Bridge')} - {'\u00B5m'} -

+
+

+ D10: {findDValue(optimalBridgeGraphData, 10, 'Bridge')} + {'\u00B5m'} +

+

+ D50: {findDValue(optimalBridgeGraphData, 50, 'Bridge')} + {'\u00B5m'} +

+

+ D90: {findDValue(optimalBridgeGraphData, 90, 'Bridge')} + {'\u00B5m'} +

+
)}
diff --git a/web/src/Components/MainBody.tsx b/web/src/Components/MainBody.tsx index bd197c0..a846b8c 100644 --- a/web/src/Components/MainBody.tsx +++ b/web/src/Components/MainBody.tsx @@ -158,7 +158,7 @@ export default ({ products }: MainBodyProps): ReactElement => {
-
+
Blends