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
parent
commit
320516f18d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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',
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>

Loading…
Cancel
Save