Skip to content

Commit 045b2ce

Browse files
committed
Cosmetics
1 parent abe5a64 commit 045b2ce

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/playground/src/App.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
1621
class 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>&nbsp;
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
);

0 commit comments

Comments
 (0)