Fill file actions space with an empty icon
authorMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Thu, 13 Dec 2018 13:58:51 +0000 (14:58 +0100)
committerMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Thu, 13 Dec 2018 13:58:51 +0000 (14:58 +0100)
Feature #13540

Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>

src/views-components/context-menu/actions/file-viewer-actions.tsx

index 868769d9d4607d76ce147a8c10c20a16c3bdae71..bedc59059451dbf46f896c864ed8ad877083a39a 100644 (file)
@@ -3,7 +3,7 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import * as React from "react";
-import { ListItemText, ListItem, ListItemIcon } from "@material-ui/core";
+import { ListItemText, ListItem, ListItemIcon, Icon } from "@material-ui/core";
 import { RootState } from '~/store/store';
 import { getNodeValue } from '~/models/tree';
 import { CollectionDirectory, CollectionFile, CollectionFileType } from '~/models/collection-file';
@@ -62,6 +62,9 @@ export const FileViewerActions = connect(mapStateToProps)(
                     onClick={onClick}
                     target='_blank'>
                     <ListItem button>
+                        <ListItemIcon>
+                            <Icon />
+                        </ListItemIcon>
                         <ListItemText>
                             {viewer.name}
                         </ListItemText>