Commit a0a591e 1 parent 7c32aba commit a0a591e Copy full SHA for a0a591e
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -227,12 +227,12 @@ class InserterMenu extends wp.element.Component {
227
227
const visibleBlocksByCategory = this . getVisibleBlocksByCategory ( wp . blocks . getBlockTypes ( ) ) ;
228
228
const visualEditorHeight = document . querySelector ( '.editor-visual-editor' ) . clientHeight ;
229
229
const minimumNeededHeight = 600 ;
230
- let positionClasses = position . split ( ' ' ) . map ( ( pos ) => `is-${ pos } ` ) ;
230
+ const positionClasses = position . split ( ' ' ) . map ( ( pos ) => `is-${ pos } ` ) ;
231
231
if ( visualEditorHeight < minimumNeededHeight ) {
232
232
const isTopIndex = positionClasses . indexOf ( 'is-top' ) ;
233
233
if ( - 1 !== isTopIndex ) {
234
- positionClasses [ isTopIndex ] = 'is-bottom' ;
235
- } ;
234
+ positionClasses [ isTopIndex ] = 'is-bottom' ;
235
+ }
236
236
}
237
237
const className = classnames ( 'editor-inserter__menu' , positionClasses ) ;
238
238
You can’t perform that action at this time.
0 commit comments