[arvados-workbench2] updated: 2.4.0-463-g956c32a4
git repository hosting
git at public.arvados.org
Tue Dec 20 22:28:17 UTC 2022
Summary of changes:
src/views-components/side-panel-toggle/side-panel-toggle.tsx | 8 +++++---
src/views-components/side-panel/side-panel.tsx | 8 ++++++--
2 files changed, 11 insertions(+), 5 deletions(-)
via 956c32a410df8789ab179ab23893ad92c0aeaada (commit)
from 2e7aa6b043dab6001c9b8be11ddb75c7723fd594 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 956c32a410df8789ab179ab23893ad92c0aeaada
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Tue Dec 20 17:28:13 2022 -0500
19434: fixed ripple shape, moved some inline styles to where they should be
Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/src/views-components/side-panel-toggle/side-panel-toggle.tsx b/src/views-components/side-panel-toggle/side-panel-toggle.tsx
index 1197c261..50628d7f 100644
--- a/src/views-components/side-panel-toggle/side-panel-toggle.tsx
+++ b/src/views-components/side-panel-toggle/side-panel-toggle.tsx
@@ -19,21 +19,23 @@ const SidePanelToggle = (props: collapseButtonProps) =>{
const collapseButtonIconStyles = {
root: {
width: `${COLLAPSE_ICON_SIZE}px`,
+ height: `${COLLAPSE_ICON_SIZE}px`,
+ marginTop: '0.4rem'
},
icon: {
width: '1.5rem',
height: '1.5rem',
marginTop: '0.5rem'
- }
+ },
}
return <Tooltip disableFocusListener title="Toggle Side Panel">
<IconButton style={collapseButtonIconStyles.root} onClick={()=>{props.toggleSidePanel(props.isCollapsed)}}>
<div>
{props.isCollapsed?
- <img style={collapseButtonIconStyles.icon} src='arrow-to-right.png'/>
+ <img style={{...collapseButtonIconStyles.icon, marginLeft: '0.25rem'}} src='/arrow-to-right.png'/>
:
- <img style={{...collapseButtonIconStyles.icon, marginRight: '0.5rem'}} src='arrow-to-left.png'/>}
+ <img style={{...collapseButtonIconStyles.icon, marginRight: '0.5rem'}} src='/arrow-to-left.png'/>}
</div>
</IconButton>
</Tooltip>
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>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list