refs #14350-more-options-on-subprocesses-misplaced
authorPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Thu, 18 Oct 2018 07:24:09 +0000 (09:24 +0200)
committerPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Thu, 18 Oct 2018 07:24:09 +0000 (09:24 +0200)
Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>

src/views/process-panel/process-subprocesses-card.tsx

index f05254531041809ffa759db6b2b526bae6aa2984..be4ad9058b0fee6541068cbb06f7991d91d9f5c6 100644 (file)
@@ -14,7 +14,7 @@ import { Process, getProcessStatus, getProcessRuntime } from '~/store/processes/
 import { formatTime } from '~/common/formatters';
 import { getProcessStatusColor } from '~/store/processes/process';
 
-export type CssRules = 'label' | 'value' | 'title' | 'content' | 'action' | 'options' | 'status' | 'rightSideHeader' | 'titleHeader' | 'header';
+export type CssRules = 'label' | 'value' | 'title' | 'content' | 'action' | 'options' | 'status' | 'rightSideHeader' | 'titleHeader' | 'header' | 'moreOptions';
 
 const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
     label: {
@@ -56,6 +56,9 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
         paddingTop: 0,
         paddingBottom: 0,
     },
+    moreOptions: {
+        position: 'absolute'
+    }
 });
 
 export interface SubprocessItemProps {
@@ -88,7 +91,7 @@ export const ProcessSubprocessesCard = withStyles(styles, { withTheme: true })(
                                 className={classes.options}
                                 aria-label="More options"
                                 onClick={onContextMenu}>
-                                <MoreOptionsIcon />
+                                <MoreOptionsIcon className={classes.moreOptions}/>
                             </IconButton>
                         </Tooltip>
                     </div>