X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/670d92f78e9af2390b93e5d984f5fabf59a16071..15b6918d498bec312bea23e5277db2997b040279:/src/views-components/details-panel/collection-details.tsx?ds=sidebyside

diff --git a/src/views-components/details-panel/collection-details.tsx b/src/views-components/details-panel/collection-details.tsx
index 7f35ca65..369c93e5 100644
--- a/src/views-components/details-panel/collection-details.tsx
+++ b/src/views-components/details-panel/collection-details.tsx
@@ -18,7 +18,11 @@ import { navigateTo } from 'store/navigation/navigation-action';
 import { openContextMenu, resourceUuidToContextMenuKind } from 'store/context-menu/context-menu-actions';
 import { openCollectionUpdateDialog } from 'store/collections/collection-update-actions';
 
-export type CssRules = 'versionBrowserHeader' | 'versionBrowserItem' | 'versionBrowserField' | 'editIcon';
+export type CssRules = 'versionBrowserHeader'
+    | 'versionBrowserItem'
+    | 'versionBrowserField'
+    | 'editButton'
+    | 'editIcon';
 
 const styles: StyleRulesCallback<CssRules> = theme => ({
     versionBrowserHeader: {
@@ -35,6 +39,11 @@ const styles: StyleRulesCallback<CssRules> = theme => ({
         paddingRight: theme.spacing.unit/2,
         fontSize: '1.125rem',
     },
+    editButton: {
+        boxShadow: 'none',
+        padding: '2px 10px 2px 5px',
+        fontSize: '0.75rem'
+    },
 });
 
 export class CollectionDetails extends DetailsData<CollectionResource> {
@@ -98,8 +107,11 @@ const CollectionInfo = withStyles(styles)(
     connect(ciMapStateToProps, ciMapDispatchToProps)(
         ({ currentCollection, editCollection, classes }: CollectionInfoProps) =>
             currentCollection !== undefined
-                ? <div data-cy='details-panel-edit-btn'>
-                    <Button onClick={() => editCollection(currentCollection)}>
+                ? <div>
+                    <Button
+                        className={classes.editButton} variant='contained'
+                        data-cy='details-panel-edit-btn' color='primary' size='small'
+                        onClick={() => editCollection(currentCollection)}>
                         <RenameIcon className={classes.editIcon} /> Edit
                     </Button>
                     <CollectionDetailsAttributes twoCol={false} item={currentCollection} />
