Browse Source
Fix GrowScroll style (fixes onboarding step 1 centering)
master
meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
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', |
|
|
|
marginRight: `-${80 + scrollbarWidth}px`, |
|
|
|
paddingRight: `80px`, |
|
|
|
display: 'flex', |
|
|
|
flexDirection: 'column', |
|
|
|
...(maxHeight |
|
|
|
? { |
|
|
|
maxHeight, |
|
|
@ -68,7 +70,7 @@ class GrowScroll extends PureComponent<Props> { |
|
|
|
return ( |
|
|
|
<div style={rootStyles}> |
|
|
|
<div style={scrollContainerStyles} ref={this.onScrollContainerRef}> |
|
|
|
<Box {...props}> |
|
|
|
<Box grow {...props}> |
|
|
|
<GrowScrollContext.Provider value={this.valueProvider}> |
|
|
|
{children} |
|
|
|
</GrowScrollContext.Provider> |
|
|
|