File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ const SCROLL_VIEW_CSS = css({
1313 width : 600
1414} ) ;
1515
16+ const SCROLL_VIEW_PADDING_CSS = css ( {
17+ paddingLeft : 10 ,
18+ paddingRight : 10
19+ } ) ;
20+
1621class App extends Component {
1722 constructor ( props ) {
1823 super ( props ) ;
@@ -46,7 +51,9 @@ class App extends Component {
4651 < button onClick = { this . handleAdd10 } > Add 10 new paragraphs</ button >
4752 < button onClick = { this . handleClear } > Clear</ button >
4853 < ScrollToBottom className = { SCROLL_VIEW_CSS + '' } >
49- { this . state . paragraphs . map ( ( paragraph , index ) => < p key = { index } > { paragraph } </ p > ) }
54+ < div className = { SCROLL_VIEW_PADDING_CSS + '' } >
55+ { this . state . paragraphs . map ( ( paragraph , index ) => < p key = { index } > { paragraph } </ p > ) }
56+ </ div >
5057 </ ScrollToBottom >
5158 </ div >
5259 ) ;
You can’t perform that action at this time.
0 commit comments