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',
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