Browse Source
Merge pull request #792 from meriadec/onboarding-first-step-center
Fix GrowScroll style (fixes onboarding step 1 centering)
master
Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
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> |
|
|