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

StartAce: featured images stretch on the category pages #8577

Open
davewhitley opened this issue Jan 14, 2025 · 4 comments
Open

StartAce: featured images stretch on the category pages #8577

davewhitley opened this issue Jan 14, 2025 · 4 comments
Labels

Comments

@davewhitley
Copy link

Quick summary

Image

Images that are landscape or horizontal will appear stretched when set as the featured image of a post, and while viewing the category archive. This might also affect any query loop on the site.

Steps to reproduce

  1. Open a fresh WP install with StartAce
  2. Set a landscape image as the featured image to the default Hello World post.
  3. Go to category archive and see the results

A clear and concise description of what you expected to happen.

I would expect the image to fill the available space without distortion.

What actually happened

No response

Impact

Some (< 50%)

Available workarounds?

Yes, difficult to implement

If the above answer is "Yes...", outline the workaround.

Set the CSS object-fit of the image from fill to cover

Image

Platform (Simple and/or Atomic)

No response

Logs or notes

Latest Chrome

@alaczek
Copy link
Contributor

alaczek commented Jan 14, 2025

I'm not sure this is a bug - might have been intentional.

The featured images in archives template have a set aspect ratio of 4:3. I think this is a way of ensuring all the images will be the same size.

The easy workaround is to adjust the template and pick a different aspect ratio for featured images, or select "original".

Image

Another option is to select "Cover" under the Scale setting for the featured image... actually, maybe that should be the default, so the images don't get distorted.

@davewhitley
Copy link
Author

Agreed, I think it's fine to keep the aspect ratio, but the image should fill the container without distortion.

@iamtakashi
Copy link
Contributor

I think the 100% width was placed to combat the bug in the stack group block, but it will distort the featured image. A better workaround is just using the regular group block instead. cc @henriqueiamarino

@iamtakashi
Copy link
Contributor

The repo for the theme is here: https://github.com/Automattic/theme-startace/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants