diff --git a/gutenberg b/gutenberg index df2fad3816..148e816ed1 160000 --- a/gutenberg +++ b/gutenberg @@ -1 +1 @@ -Subproject commit df2fad3816d2d4a6a919c3037ef616f5328d0857 +Subproject commit 148e816ed15814a08fb99ed8d329fc3ebbe72dfb diff --git a/src/block-management/block-toolbar.js b/src/block-management/block-toolbar.js index 2d9e228081..0ef22ff9c0 100644 --- a/src/block-management/block-toolbar.js +++ b/src/block-management/block-toolbar.js @@ -10,7 +10,6 @@ import { compose } from '@wordpress/compose'; import { Toolbar, ToolbarButton } from '@wordpress/components'; import { BlockFormatControls, BlockControls } from '@wordpress/editor'; import { __ } from '@wordpress/i18n'; -import KeyboardHideButton from '../components/keyboard-hide-button'; import styles from './block-toolbar.scss'; @@ -65,14 +64,16 @@ export class BlockToolbar extends Component { onClick={ redo } /> - { showKeyboardHideButton && ( - - ) } + { showKeyboardHideButton && + ( + + ) } ); } diff --git a/src/block-management/block-toolbar.scss b/src/block-management/block-toolbar.scss index 9544dd2498..c5e25cff08 100644 --- a/src/block-management/block-toolbar.scss +++ b/src/block-management/block-toolbar.scss @@ -5,3 +5,12 @@ border-top-color: #e9eff3; border-top-width: 1; } + +.keyboardHideContainer { + padding-right: 0px; + padding-left: 0px; + padding-top: 4px; + width: 44; + justify-content: center; + align-items: center; +} diff --git a/src/components/keyboard-hide-button.js b/src/components/keyboard-hide-button.js deleted file mode 100644 index 1eee0b3247..0000000000 --- a/src/components/keyboard-hide-button.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @format - * @flow - */ - -import React from 'react'; -import Svg, { G, Rect, Path } from 'react-native-svg'; -import { TouchableOpacity } from 'react-native'; - -type PropsType = { - onPress: void => void, -}; - -const KeyboardHideButton = ( props: PropsType ) => ( - - - - - - - - - -); - -export default KeyboardHideButton;