Fix the size and scrolling of the inserter sidebar in the form editor
[[MAILPOET-6054]
This commit is contained in:
committed by
Aschepikov
parent
99d726e378
commit
d1a4d80459
@ -136,7 +136,7 @@ h2 {
|
||||
|
||||
// Hide block selector header with close button on desktops
|
||||
@include respond-to(not-small-screen) {
|
||||
.edit-post-editor__inserter-panel-header {
|
||||
.editor-inserter-sidebar__header {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@ -145,3 +145,8 @@ h2 {
|
||||
.block-editor-inserter__tablist-and-close-button {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
// Scrollable inserter sidebar panel
|
||||
.block-editor-inserter__tabs .block-editor-inserter__block-list {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
@ -14,11 +14,11 @@ export function Inserter({ setIsInserterOpened }: Props): JSX.Element {
|
||||
[],
|
||||
);
|
||||
return (
|
||||
<div className="edit-post-editor__inserter-panel">
|
||||
<div className="edit-post-editor__inserter-panel-header">
|
||||
<div className="editor-inserter-sidebar">
|
||||
<div className="editor-inserter-sidebar__header">
|
||||
<Button icon={close} onClick={(): void => setIsInserterOpened(false)} />
|
||||
</div>
|
||||
<div className="edit-post-editor__inserter-panel-content">
|
||||
<div className="editor-inserter-sidebar__content">
|
||||
<Library
|
||||
showMostUsedBlocks
|
||||
showInserterHelpPanel={false}
|
||||
|
Reference in New Issue
Block a user