Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
reusable block hint spacing
  • Loading branch information
SaxonF authored and glendaviesnz committed Jul 5, 2023
commit 2c6a34afb2ca5d5519c94b4e970133de952e1531
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function ReusableBlocksRenameHint() {
<div ref={ ref } className="reusable-blocks-menu-items__rename-hint">
<div className="reusable-blocks-menu-items__rename-hint-content">
{ __(
'Reusable blocks are now called "patterns". A "synced" pattern will behave in exactly the same way as a reusable block.'
'Reusable blocks are now called patterns. A synced pattern will behave in exactly the same way as a reusable block.'
) }
</div>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ function ReusableBlocksList( { onHover, onInsert, rootClientId } ) {
export function ReusableBlocksTab( { rootClientId, onInsert, onHover } ) {
return (
<>
<ReusableBlocksRenameHint />
<div className="block-editor-inserter__hint">
<ReusableBlocksRenameHint />
</div>
<ReusableBlocksList
onHover={ onHover }
onInsert={ onInsert }
Expand Down
5 changes: 4 additions & 1 deletion packages/block-editor/src/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -712,14 +712,17 @@ $block-inserter-tabs-height: 44px;
}
}

.block-editor-inserter__hint {
margin: $grid-unit-20 $grid-unit-20 0;
}

.reusable-blocks-menu-items__rename-hint {
align-items: top;
background: $gray-100;
border-radius: $radius-block-ui;
color: $gray-900;
display: flex;
flex-direction: row;
margin: $grid-unit-20 $grid-unit-20 $grid-unit-20 $grid-unit-20;
max-width: 380px;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ export default function ReusableBlockConvertButton( {
onClose();
} }
>
<ReusableBlocksRenameHint />
<VStack spacing="5">
<ReusableBlocksRenameHint />
<TextControl
__nextHasNoMarginBottom
label={ __( 'Name' ) }
Expand Down