}
}
-type CssRules = 'tag' | 'editIcon';
+type CssRules = 'tag' | 'editIcon' | 'editButton';
const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
tag: {
- marginRight: theme.spacing.unit,
- marginBottom: theme.spacing.unit
+ marginRight: theme.spacing.unit / 2,
+ marginBottom: theme.spacing.unit / 2,
},
editIcon: {
paddingRight: theme.spacing.unit/2,
fontSize: '1.125rem',
- }
+ },
+ editButton: {
+ boxShadow: 'none',
+ padding: '2px 10px 2px 5px',
+ fontSize: '0.75rem'
+ },
});
interface ProjectDetailsComponentDataProps {
name: project.name,
description: project.description,
properties: project.properties,
- })}>
+ })}
+ className={classes.editButton} variant='contained'
+ data-cy='details-panel-edit-btn' color='primary' size='small'>
<RenameIcon className={classes.editIcon} /> Edit
</Button>
: ''