From 8228d441690ed78340e1a44f3e0bf8b4f94215a0 Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Wed, 15 Nov 2023 15:32:21 -0500 Subject: [PATCH] 19302: css tweaks Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- .../side-panel/side-panel-collapsed.tsx | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/views-components/side-panel/side-panel-collapsed.tsx b/src/views-components/side-panel/side-panel-collapsed.tsx index 0f43fb71..18e4df25 100644 --- a/src/views-components/side-panel/side-panel-collapsed.tsx +++ b/src/views-components/side-panel/side-panel-collapsed.tsx @@ -23,15 +23,14 @@ import { import { navigateToUserVirtualMachines } from 'store/navigation/navigation-action' import { RouterAction } from 'react-router-redux' -type CssRules = 'root' | 'unselected' | 'selected' +type CssRules = 'button' | 'unselected' | 'selected' const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ - root: { + button: { width: '40px', height: '40px', - // padding: '1rem' - paddingLeft: '-1rem', - marginLeft: '-0.3rem', + paddingLeft: '-2rem', + marginLeft: '-0.6rem', marginBottom: '-1rem' }, unselected: { @@ -128,24 +127,22 @@ export const SidePanelCollapsed = withStyles(styles)( else navTo(cat.navTarget) } - const { root, unselected, selected } = classes + const { button, unselected, selected } = classes return ( - + {sidePanelCollapsedCategories.map((cat) => ( handleClick(cat)} > - - {cat.icon} - + {cat.icon} ))} -- 2.30.2