Skip to content

Commit d65bc73

Browse files
committed
feat(CV): update cyclic voltammetry panel styling and add mode warning
1 parent c1c9d8e commit d65bc73

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/components/panel/cyclic_voltamery_data.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,12 @@ const styles = () => ({
134134
},
135135
rowEven: {
136136
backgroundColor: '#fafafa',
137-
textOverflow: 'clip',
138-
whiteSpace: 'normal',
137+
textOverflow: 'ellipsis',
138+
whiteSpace: 'nowrap',
139+
},
140+
cvModeWarning: {
141+
color: 'red',
142+
marginLeft: 12,
139143
},
140144
});
141145

@@ -245,6 +249,13 @@ const CyclicVoltammetryPanel = ({
245249
<span className={classNames(classes.txtBadge, 'txt-sv-panel-title')}>
246250
Voltammetry data
247251
</span>
252+
{' - '}
253+
<span>
254+
Mode: {cyclicVotaSt.useCurrentDensity ? 'Current Density' : 'Current'}
255+
</span>
256+
<span className={classes.cvModeWarning}>
257+
WE-ECSA must be set when switching to Current Density.
258+
</span>
248259
</Typography>
249260
<div className={classes.panelActions}>
250261
<Tooltip

0 commit comments

Comments
 (0)