add fix to comments from @LianaHus

pull/1861/head
Joseph Izang 3 years ago
parent b07a805940
commit 499efda1b4
  1. 13
      libs/remix-ui/vertical-icons-panel/src/lib/components/RequiredSection.tsx
  2. 4
      libs/remix-ui/vertical-icons-panel/src/lib/components/Settings.tsx

@ -56,10 +56,15 @@ function RequiredSection ({ verticalIconsPlugin, itemContextAction, addActive, r
removeActive={removeActive} removeActive={removeActive}
itemContextAction={itemContextAction} itemContextAction={itemContextAction}
/> />
<Chevron {
divElementRef={scrollableRef} scrollableRef.current && scrollableRef.current.scrollHeight > scrollableRef.current.clientHeight
cssRule={'fa fa-chevron-up remixui_icon-chevron mt-0 mb-0 ml-1 pl-3'} ? (
/> <Chevron
divElementRef={scrollableRef}
cssRule={'fa fa-chevron-up remixui_icon-chevron mt-0 mb-0 ml-1 pl-3'}
/>
) : null
}
</Fragment> </Fragment>
) )
} }

@ -34,10 +34,10 @@ function Settings ({ scrollableRef, verticalIconsPlugin, itemContextAction, addA
}, []) }, [])
return ( return (
<div id="settingsIcons" className="remixui_settings mb-0 flex-grow-0" data-id="vertialIconsSettingsIcons" ref={settingsRef}> <div id="settingsIcons" className="remixui_settings mb-0 flex-grow-0" data-id="vertialIconsSettingsIcons" ref={settingsRef}>
<Chevron { scrollableRef.current && scrollableRef.current.scrollHeight > scrollableRef.current.clientHeight ? (<Chevron
divElementRef={scrollableRef} divElementRef={scrollableRef}
cssRule={'fa fa-chevron-down remixui_icon-chevron mt-0 mb-0 ml-1 pl-3'} cssRule={'fa fa-chevron-down remixui_icon-chevron mt-0 mb-0 ml-1 pl-3'}
/> />) : null }
{Object.keys(verticalIconsPlugin.targetProfileForChange) {Object.keys(verticalIconsPlugin.targetProfileForChange)
.filter(p => p === 'settings') .filter(p => p === 'settings')
.map(p => ( .map(p => (

Loading…
Cancel
Save