| 'versionBrowserItem'
| 'versionBrowserField'
| 'editButton'
- | 'editIcon';
+ | 'editIcon'
+ | 'tag';
const styles: StyleRulesCallback<CssRules> = theme => ({
versionBrowserHeader: {
padding: '2px 10px 2px 5px',
fontSize: '0.75rem'
},
+ tag: {
+ marginRight: theme.spacing.unit / 2,
+ marginBottom: theme.spacing.unit / 2
+ },
});
export class CollectionDetails extends DetailsData<CollectionResource> {
onClick={() => editCollection(currentCollection)}>
<RenameIcon className={classes.editIcon} /> Edit
</Button>
- <CollectionDetailsAttributes twoCol={false} item={currentCollection} />
+ <CollectionDetailsAttributes classes={classes} twoCol={false} item={currentCollection} />
</div>
: <div />
)
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,
color: theme.customs.colors.yellow700
},
tag: {
- marginRight: theme.spacing.unit,
- marginBottom: theme.spacing.unit
+ marginRight: theme.spacing.unit / 2,
+ marginBottom: theme.spacing.unit / 2
},
label: {
fontSize: '0.875rem'
<DetailsAttribute classLabel={classes.label} classValue={classes.value}
label='Storage classes' value={item.storageClassesDesired.join(', ')} />
</Grid>
- <Grid item xs={12} md={mdSize}>
+
+ {/*
+ NOTE: The property list should be kept at the bottom, because it spans
+ the entire available width, without regards of the twoCol prop.
+ */}
+ <Grid item xs={12} md={12}>
<DetailsAttribute classLabel={classes.label} classValue={classes.value}
label='Properties' />
{ Object.keys(item.properties).length > 0