From b4b78a306a93fc566ce9a442d8008beaff81cb64 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Tue, 19 Oct 2021 13:49:14 -0300 Subject: [PATCH] 18128: Makes the toggle button bar always visible. In case there's vertical scrolling involved, the button bar will always be accessible. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- .../multi-panel-view/multi-panel-view.tsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/multi-panel-view/multi-panel-view.tsx b/src/components/multi-panel-view/multi-panel-view.tsx index e0698750..6778b526 100644 --- a/src/components/multi-panel-view/multi-panel-view.tsx +++ b/src/components/multi-panel-view/multi-panel-view.tsx @@ -11,7 +11,7 @@ import { InfoIcon, InvisibleIcon, VisibleIcon } from 'components/icon/icon'; import { ReactNodeArray } from 'prop-types'; import classNames from 'classnames'; -type CssRules = 'button' | 'buttonIcon'; +type CssRules = 'button' | 'buttonIcon' | 'content'; const styles: StyleRulesCallback = theme => ({ button: { @@ -23,6 +23,9 @@ const styles: StyleRulesCallback = theme => ({ padding: '2px 0px 2px 5px', fontSize: '1rem' }, + content: { + overflow: 'auto', + }, }); interface MPVHideablePanelDataProps { @@ -150,11 +153,13 @@ const MPVContainerComponent = ({children, panelStates, classes, ...props}: MPVCo { toggles.map(tgl => {tgl}) } - { panelVisibility.includes(true) - ? panels - : - - } + + { panelVisibility.includes(true) + ? panels + : + + } + ; }; -- 2.30.2