import { ArvadosTheme } from 'common/custom-theme';
import classNames from 'classnames';
-type CssRules = 'heading' | 'summary' | 'details' | 'error' | 'errorColor' | 'warning' | 'warningColor';
+type CssRules = 'heading'
+ | 'summary'
+ | 'details'
+ | 'detailsText'
+ | 'error'
+ | 'errorColor'
+ | 'warning'
+ | 'warningColor';
const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
heading: {
paddingLeft: theme.spacing.unit * 1,
paddingRight: theme.spacing.unit * 1,
},
+ detailsText: {
+ fontSize: '0.8rem',
+ marginTop: '0px',
+ marginBottom: '0px',
+ whiteSpace: 'pre-line',
+ },
errorColor: {
color: theme.customs.colors.red900,
},
</Typography>
</ExpansionPanelSummary>
<ExpansionPanelDetails className={classes.details}>
- <Typography className={classes.errorColor}>
+ <Typography className={classNames(classes.errorColor, classes.detailsText)}>
{runtimeStatus?.errorDetail || 'No additional error details available'}
</Typography>
</ExpansionPanelDetails>
</Typography>
</ExpansionPanelSummary>
<ExpansionPanelDetails className={classes.details}>
- <Typography className={classes.warningColor}>
+ <Typography className={classNames(classes.warningColor, classes.detailsText)}>
{runtimeStatus?.warningDetail || 'No additional warning details available'}
</Typography>
</ExpansionPanelDetails>