Skip to content

Conversation

theletterf
Copy link
Contributor

This PR tweaks our CSS so that images not taking the whole width of the container will be centered, as it happens in the Elastic Blog, for example.

I used Claude Sonnet 4.5 with Claude CLI 2.0 to author this pull request.

Copy link

github-actions bot commented Oct 16, 2025

🔍 Preview links for changed docs

@theletterf theletterf enabled auto-merge (squash) October 16, 2025 16:19
@theletterf theletterf disabled auto-merge October 16, 2025 16:27
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

It appears this only works for images if the paragraph also has content.

@theletterf
Copy link
Contributor Author

@Mpdreamz That's an inline image. I'd argue we don't need / want inline images to be aligned at all, no?

@theletterf theletterf requested a review from Mpdreamz October 16, 2025 17:05
@Mpdreamz
Copy link
Member

I went crosseyed
image

The one above is pushed by the content :)

@theletterf theletterf merged commit 97de90d into main Oct 17, 2025
22 checks passed
@theletterf theletterf deleted the center-images-css branch October 17, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants