Browse Source

Fix GrowScroll style (fixes onboarding step 1 centering)

master
meriadec 7 years ago
parent
commit
daddfcaed9
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 4
      src/components/base/GrowScroll/index.js

4
src/components/base/GrowScroll/index.js

@ -52,6 +52,8 @@ class GrowScroll extends PureComponent<Props> {
overflowY: 'scroll', overflowY: 'scroll',
marginRight: `-${80 + scrollbarWidth}px`, marginRight: `-${80 + scrollbarWidth}px`,
paddingRight: `80px`, paddingRight: `80px`,
display: 'flex',
flexDirection: 'column',
...(maxHeight ...(maxHeight
? { ? {
maxHeight, maxHeight,
@ -68,7 +70,7 @@ class GrowScroll extends PureComponent<Props> {
return ( return (
<div style={rootStyles}> <div style={rootStyles}>
<div style={scrollContainerStyles} ref={this.onScrollContainerRef}> <div style={scrollContainerStyles} ref={this.onScrollContainerRef}>
<Box {...props}> <Box grow {...props}>
<GrowScrollContext.Provider value={this.valueProvider}> <GrowScrollContext.Provider value={this.valueProvider}>
{children} {children}
</GrowScrollContext.Provider> </GrowScrollContext.Provider>

Loading…
Cancel
Save