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 for Post Author Avatar to be resizable #47169

Open
jasontucker opened this issue Jan 15, 2023 · 5 comments
Open

Allow for Post Author Avatar to be resizable #47169

jasontucker opened this issue Jan 15, 2023 · 5 comments
Labels
[Block] Post Author Affects the Post Author Block [Type] Bug An existing feature does not function as intended

Comments

@jasontucker
Copy link

On the Post Author Block it would be nice to have the ability to change the size of the avatar image.

https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/post-author/block.json

@t-hamano t-hamano added [Type] Enhancement A suggestion for improvement. [Block] Post Author Affects the Post Author Block labels Jan 16, 2023
@t-hamano
Copy link
Contributor

Thanks for the suggestion.
Do you mean you want to set any width as well as the three size variations as shown below?

avatar_size

@jasontucker
Copy link
Author

While editing in Full Site Editor and editing the Post Author block on my author archive page I see only these settings:

CleanShot 2023-01-15 at 20 20 30@2x

I don't see any way to edit the avatar size just to specify if i want to display it or the bio.

@t-hamano
Copy link
Contributor

Thank you for the information.

I think this is a bug. If this block is in the query context, the avatar and size controls will display correctly:

in-query-loop

However, when inserted into a single template, for example, the avatar and size control will not be visible:

outside-query-loop

On the front end, the avatar is displayed correctly:

frontend

I think that when this block is added outside of the query context, the placeholder avatar image should be displayed, as suggested in #35693, and the controls should also be displayed.

@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended and removed [Type] Enhancement A suggestion for improvement. labels Jan 16, 2023
@github-actions
Copy link

Hi,
This issue has gone 180 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
Thanks for helping out.

@t-hamano
Copy link
Contributor

Update: I forgot that instead of the Post Author block, the Avatar block is available. With the Avatar block, the avatar placeholder is displayed outside of the query context. And unlike the Post Author block, there is no limit to size variations.

avatar

Also, the Post Author block is proposed to be deprecated in #53427. If it is officially deprecated, there will be no need to address this issue and this issue can be closed.

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 [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants