Add css fixes for block editor

[MAILPOET-2451]
This commit is contained in:
Rostislav Wolny
2019-12-02 17:30:39 +01:00
committed by Jack Kitterhing
parent 14831a592e
commit d25de883e7
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
// Fix for scrolling within editor
// This is fixed in Gutenberg's master branch.
// We should remove this fix after we update @wordpress/edit-post to version newer than 3.9.0
@media (min-width: 600px) {
.edit-post-layout__content {
overflow-y: auto;
overscroll-behavior-y: none;
padding-bottom: 0;
}
}
// Fix for broken drag and drop for blocks
// This is fixed in Gutenberg's master branch
// https://github.com/WordPress/gutenberg/pull/15054
// We should remove this fix after we update @wordpress/components to version newer than 8.4.0
.edit-post-layout__content {
.block-editor-block-mover__control-drag-handle {
display: none;
}
}
// We don't want to allow user to remove Submit or Email.
// There is no way to hide the delete button programmatically so we hide last toolbar that contains the delete option
// There is a feature request for adding that into Gutenberg https://github.com/WordPress/gutenberg/issues/16364
#block-email,
#block-submit {
.components-toolbar:last-child {
display: none;
}
}

View File

@@ -6,3 +6,4 @@
@import './components/formEditor/components/form_title';
@import './components/formEditor/components/sidebar';
@import './components/formEditor/components/block_editor';