interface AttributeDataProps {
label: string;
- value?: string;
+ value?: string | number;
link?: string;
}
return <Typography component="div" className={classes.attribute}>
<Typography component="span" className={classes.label}>{label}</Typography>
{ this.hasLink() ? (
- <a href='{link}' className={classes.link} target='_blank'>{value}</a>
+ <a href='{link}' className={classes.link} target='_blank'>{value}</a>
) : (
<Typography component="span" className={classes.value}>
{value}
const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
attribute: {
- height: '24px',
display: 'flex',
- alignItems: 'center',
+ alignItems: 'flex-start',
marginBottom: theme.spacing.unit
},
label: {
width: '40%'
},
value: {
+ width: '60%',
display: 'flex',
- alignItems: 'center'
+ alignItems: 'flex-start',
+ textTransform: 'capitalize'
},
link: {
+ width: '60%',
color: theme.palette.primary.main,
- textDecoration: 'none'
+ textDecoration: 'none',
+ overflowWrap: 'break-word'
}
});