Skip to content

Commit

Permalink
Use the same padding used for other blocks in DefaultBlockAppender
Browse files Browse the repository at this point in the history
  • Loading branch information
Tug committed Nov 29, 2018
1 parent 50420de commit b1c121b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { compose } from '@wordpress/compose';
import { decodeEntities } from '@wordpress/html-entities';
import { withSelect, withDispatch } from '@wordpress/data';

import styles from './style.scss';

export function DefaultBlockAppender( {
isLocked,
isVisible,
Expand All @@ -27,13 +29,15 @@ export function DefaultBlockAppender( {
<TouchableWithoutFeedback
onPress={ onAppend }
>
<View style={ { flex: 1 } } pointerEvents="box-only">
<TextInput
textAlignVertical="top"
multiline
numberOfLines={ 0 }
value={ value }
/>
<View style={ styles.blockHolder } pointerEvents="box-only">
<View style={ styles.blockContainer }>
<TextInput
textAlignVertical="top"
multiline
numberOfLines={ 0 }
value={ value }
/>
</View>
</View>
</TouchableWithoutFeedback>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

.blockHolder {
flex: 1 1 auto;
}

.blockContainer {
background-color: $white;
padding: 8px;
}

0 comments on commit b1c121b

Please sign in to comment.