From: Lucas Di Pentima Date: Thu, 27 Oct 2022 12:58:51 +0000 (-0300) Subject: 19300: Disables maximiza button instead of hiding it when panel is maximized. X-Git-Tag: 2.5.0~29^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/35cbda6f514ee278d512aa15e1191bed7e6cf7a5 19300: Disables maximiza button instead of hiding it when panel is maximized. Also, removed the smooth scrolling when selecting a panel, to hopefully remove the flickering on Firefox. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/src/components/data-explorer/data-explorer.tsx b/src/components/data-explorer/data-explorer.tsx index b500ef7c..02532011 100644 --- a/src/components/data-explorer/data-explorer.tsx +++ b/src/components/data-explorer/data-explorer.tsx @@ -190,9 +190,9 @@ export const DataExplorer = withStyles(styles)( } - { doHidePanel && !panelMaximized && + { doHidePanel && - + } diff --git a/src/components/multi-panel-view/multi-panel-view.tsx b/src/components/multi-panel-view/multi-panel-view.tsx index 6779bc35..f0cbcf56 100644 --- a/src/components/multi-panel-view/multi-panel-view.tsx +++ b/src/components/multi-panel-view/multi-panel-view.tsx @@ -86,7 +86,7 @@ export const MPVPanelContent = ({doHidePanel, doMaximizePanel, doUnMaximizePanel ...props}: MPVPanelContentProps) => { useEffect(() => { if (panelRef && panelRef.current) { - panelRef.current.scrollIntoView({behavior: 'smooth'}); + panelRef.current.scrollIntoView({alignToTop: true}); } }, [panelRef]); diff --git a/src/views/process-panel/process-io-card.tsx b/src/views/process-panel/process-io-card.tsx index df2f6c51..90427659 100644 --- a/src/views/process-panel/process-io-card.tsx +++ b/src/views/process-panel/process-io-card.tsx @@ -276,9 +276,9 @@ export const ProcessIOCard = withStyles(styles)(connect(null, mapDispatchToProps } - { doHidePanel && !panelMaximized && + { doHidePanel && - + } } /> diff --git a/src/views/process-panel/process-log-card.tsx b/src/views/process-panel/process-log-card.tsx index 0abb725b..03739699 100644 --- a/src/views/process-panel/process-log-card.tsx +++ b/src/views/process-panel/process-log-card.tsx @@ -153,9 +153,9 @@ export const ProcessLogsCard = withStyles(styles)( } - { doHidePanel && !panelMaximized && + { doHidePanel && - + } } title={