Merge remote-tracking branch 'origin/dev'

This commit is contained in:
punitverma123 2025-05-20 17:46:24 +05:30
commit c91c97584d
2 changed files with 9 additions and 1 deletions

View file

@ -11,10 +11,17 @@ wp.hooks.addFilter(
return blockOrder[blockOrder.length - 1]; // Get the last block's clientId
}, []);

const rootClientId = useSelect((select) =>
select('core/block-editor').getBlockRootClientId(props.clientId),
[props.clientId]
);
// Only show if it's the last root-level block (not inside reusable or inner blocks)
const shouldShowAppender = props.clientId === lastBlockClientId && rootClientId === null;

return (
<>
<BlockEdit {...props} />
{props.clientId === lastBlockClientId && (
{shouldShowAppender && (
<div className={'block-list-appender wp-block'}>
<ButtonBlockAppender
rootClientId={null} // Since we don't have nested blocks

View file

@ -127,6 +127,7 @@ function Gallery({ onSubmitData }) {
lineHeight={'1.5em'}
size={15}
color='#777'
style={{wordBreak: 'break-word'}}
>
{blueprintDetails.description}
</Text>