Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow post meta to be arranged inline #26899

Closed
kjellr opened this issue Nov 11, 2020 · 7 comments
Closed

Allow post meta to be arranged inline #26899

kjellr opened this issue Nov 11, 2020 · 7 comments
Labels
[Block] Post Author Affects the Post Author Block [Block] Post Date Affects the Post Date Block [Block] Post Tags Affects the Post Tags Block [Block] Post Terms Affects the Post Terms Block [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.

Comments

@kjellr
Copy link
Contributor

kjellr commented Nov 11, 2020

Many themes list post meta one after the other like so:

Screen Shot 2020-11-11 at 11 35 17 AM

This isn't currently possible with the set of meta blocks we have. I can place them in a columns block, but the column width can't vary depending on the width of items. If there are two categories, it should push the tags over like so:

Screen Shot 2020-11-11 at 11 35 44 AM

These should be a way to set the meta blocks to be inline-block elements to achieve this effect.

@kjellr kjellr added [Type] Enhancement A suggestion for improvement. Needs Design Feedback Needs general design feedback. [Block] Post Author Affects the Post Author Block [Block] Post Date Affects the Post Date Block [Block] Post Tags Affects the Post Tags Block [Block] Post Terms Affects the Post Terms Block [Feature] Full Site Editing [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. labels Nov 11, 2020
@carolinan
Copy link
Contributor

I think it would be a good idea to have a post meta template part or area for this with different variations.
Perhaps meta is not a user friendly name, maybe post information?

But first template parts need to be able to use the context from the query.

@scruffian
Copy link
Contributor

One way to achieve this this might be to let users set "display: flex" on the group block... #24473

@ntsekouras
Copy link
Contributor

Is this possible now with the Row block? Would something more be needed?

@jasmussen
Copy link
Contributor

Tangential to this ticket (as noted by @ntsekouras a row block might go a long way here), but one use case I'd love to see supported is to allow more direct prose in the post meta, a la Alice in Wonderland was posted on Nov. 25th and filed in Books. A standalone "post meta" block has been suggested before, but to put the idea out there, inline chips if at all feasible could bring a lot of flexibility:

Meta chips

These should conceptually not be that different from @mentions or the likes, but could provide flexibility that bespoke blocks could not. Even beyond post meta, what if I want to link my featured image to the post itself? What if I wanted to customize my "Read more" link to say "Read [post title] in [posts page]"?

@dsas
Copy link
Contributor

dsas commented May 9, 2022

The post terms block on trunk (#40559) now supports a prefix and a suffix, so that's one step closer to @jasmussen's suggestion

@annezazu annezazu added [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") and removed [Feature] Full Site Editing labels Jul 24, 2023
@ellatrix
Copy link
Member

Is this a duplicate of #25448?

@jasmussen
Copy link
Contributor

I'd tend to think that the original issue can be partialy solved with the Row block and flex properties, and the other aspects can indeed be handled by #25448.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Author Affects the Post Author Block [Block] Post Date Affects the Post Date Block [Block] Post Tags Affects the Post Tags Block [Block] Post Terms Affects the Post Terms Block [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

8 participants