[wp-trac] [WordPress Trac] #60126: Block Hooks: Sibling insertion incompatible with constrained layout
WordPress Trac
noreply at wordpress.org
Thu Dec 21 15:59:59 UTC 2023
#60126: Block Hooks: Sibling insertion incompatible with constrained layout
-----------------------------+-----------------------------
Reporter: Bernhard Reiter | Owner: Bernhard Reiter
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.5
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
It's been brought to my attention that insertion of e.g. a 'Like' button
block `after` a Post Content block currently doesn't work well for e.g.
the TT3 and TT4 Block Themes. The reason for this is that those Block
Themes use `layout` block-support on their Post Content block and post
meta Group block (i.e. the Group block that typically contains the post
date, byline, categories, and sometimes also the Featured Image block) to
set their layout to `constrained` -- which sets a certain margin and
padding to center those blocks horizontally.
OTOH, an automatically inserted (hooked) Like button block -- with no
attributes set -- will sit at the very left of the viewport.
See [https://private-user-
images.githubusercontent.com/96308/292253096-64bf3e81-3ab8-4d10-9ff3-1295dddaa21c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDMxNzQzNDQsIm5iZiI6MTcwMzE3NDA0NCwicGF0aCI6Ii85NjMwOC8yOTIyNTMwOTYtNjRiZjNlODEtM2FiOC00ZDEwLTlmZjMtMTI5NWRkZGFhMjFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFJV05KWUFYNENTVkVINTNBJTJGMjAyMzEyMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjMxMjIxVDE1NTQwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVjZTM2ZWY1ODcwMzc5YjVmZmMyNzUyMTE1MTc2NGI0ODQ0MjdjMThkYzU0YmM3NzhkMmY4MGFjNmZlMmM5Y2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.wR0q2AzSRujM4i2mYGzlWCToqppmI96bpiECNtMmLgI
here] for an illustration of the problem.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60126>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list