X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/2e7aa6b043dab6001c9b8be11ddb75c7723fd594..956c32a410df8789ab179ab23893ad92c0aeaada:/src/views-components/side-panel/side-panel.tsx

diff --git a/src/views-components/side-panel/side-panel.tsx b/src/views-components/side-panel/side-panel.tsx
index 2d975b6f..a039147d 100644
--- a/src/views-components/side-panel/side-panel.tsx
+++ b/src/views-components/side-panel/side-panel.tsx
@@ -17,7 +17,7 @@ import SidePanelToggle from 'views-components/side-panel-toggle/side-panel-toggl
 
 const DRAWER_WIDTH = 240;
 
-type CssRules = 'root';
+type CssRules = 'root' | 'topButtonContainer';
 
 const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
     root: {
@@ -26,6 +26,10 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
         height: '100%',
         overflowX: 'auto',
         width: DRAWER_WIDTH,
+    },
+    topButtonContainer: {
+        display: 'flex', 
+        justifyContent: 'space-between'
     }
 });
 
@@ -46,7 +50,7 @@ export const SidePanel = withStyles(styles)(
             <Grid item xs>
                 {props.isCollapsed ? <SidePanelToggle /> :
                 <>
-                    <Grid style={{display: 'flex', justifyContent: 'space-between'}}>
+                    <Grid className={classes.topButtonContainer}>
                         <SidePanelButton key={props.currentRoute} />
                         <SidePanelToggle/>
                     </Grid>
