type CssRules =
| 'root'
- | 'cardheader'
- | 'fadeout'
- | 'showmore'
+ | 'cardHeader'
+ | 'showMore'
| 'nameContainer'
| 'activeIndicator'
- | 'cardcontent'
+ | 'cardContent'
| 'namePlate'
| 'faveIcon'
| 'frozenIcon'
- | 'attributesection'
+ | 'attributeSection'
| 'attribute'
- | 'chipsection'
+ | 'chipSection'
| 'tag';
const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
root: {
width: '100%',
marginBottom: '1rem',
+ flex: '0 0 auto',
},
- fadeout: {
- maxWidth: '25rem',
- minWdidth: '18rem',
- height: '1.5rem',
- overflow: 'hidden',
- WebkitMaskImage: '-webkit-gradient(linear, left bottom, right bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)))',
- },
- showmore: {
+ showMore: {
color: theme.palette.primary.main,
cursor: 'pointer',
maxWidth: '10rem',
activeIndicator: {
margin: '0.3rem auto auto 1rem',
},
- cardheader: {
+ cardHeader: {
paddingTop: '0.4rem',
},
- cardcontent: {
+ cardContent: {
display: 'flex',
flexDirection: 'column',
marginTop: '-1rem',
height: '1rem',
color: theme.palette.text.primary,
},
- attributesection: {
+ attributeSection: {
display: 'flex',
flexWrap: 'wrap',
},
padding: '0.5rem',
borderRadius: '5px',
},
- chipsection: {
+ chipSection: {
display: 'flex',
flexWrap: 'wrap',
},
return (
<Card className={classes.root}>
<CardHeader
- className={classes.cardheader}
+ className={classes.cardHeader}
title={
<section className={classes.nameContainer}>
<Typography
};
const ProjectCard: React.FC<ProjectCardProps> = ({ classes, currentResource, frozenByFullName, handleContextMenu, isAdmin }) => {
- const { name, uuid, description } = currentResource as ProjectResource;
+ const { name, description } = currentResource as ProjectResource;
return (
<Card className={classes.root}>
<CardHeader
- className={classes.cardheader}
+ className={classes.cardHeader}
title={
<>
<section className={classes.namePlate}>
<FreezeIcon style={{ fontSize: 'inherit' }} />
</Tooltip>}
</section>
- <section className={classes.chipsection}>
+ <section className={classes.chipSection}>
<Typography component='div'>
{typeof currentResource.properties === 'object' &&
Object.keys(currentResource.properties).map((k) =>
</IconButton>
</Tooltip>}
/>
- <CardContent className={classes.cardcontent}>
+ <CardContent className={classes.cardContent}>
{description && (
<section>
- {/* <Typography className={classes.fadeout}>{description.replace(/<[^>]*>/g, '').slice(0, 45)}...</Typography> */}
- <div className={classes.showmore}>
+ <div className={classes.showMore}>
<RichTextEditorLink
title={`Description of ${name}`}
content={description}