Skip to content

Conversation

@kittenkamala
Copy link
Contributor

@kittenkamala kittenkamala commented Oct 30, 2025

Addressing #354

The previous change worked when tested in-browser dev tools but did not translate to the live handbook. There isn't actually a good way to test handbook styles as it stands now, because once live the handbook inherits and is framed by P2 styles. Whereas the isolated codebase does not inherit anything, and browser tools don't interact with the code in the same way.

So I went into make /hosting/wp-admin and edited the page > block > html directly, then used the preview feature to test how that will look and behave when placed in the P2 frame (and scaled up/down). Of course I did not save those changes because then we would have a syncing issue with GitHub.

So anyway, what I landed on is this:

style="max-width: 100%; max-height: 100%; object-fit: contain;"

@iqbal-web
Copy link
Contributor

iqbal-web commented Oct 30, 2025

Testing this pr, it looks good

LGTM

@theaminuli
Copy link
Member

I tested this using the browser dev tools, and the responsiveness has improved significantly. Everything works great — this PR is perfect, and so this PR is ready to be merged.

Performance.Make.WordPress.Hosting.-.Google.Chrome.2025-10-30.08-39-08.mp4

@Dhruval-678
Copy link

@kittenkamala
I have tested it with inspector tools by adding that css its looks good in responsive version as well.
refer the below video for same.
https://www.awesomescreenshot.com/video/45834420?key=90f60d57afb2389e7bd4a11f585f6523

LGTM!

@kittenkamala
Copy link
Contributor Author

Awesome! Thank you both so much!

@kittenkamala kittenkamala merged commit 573e5c4 into WordPress:main Oct 30, 2025
@github-project-automation github-project-automation bot moved this from Review to Done in WordPress Hosting Team Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Images overflow horizontally and overlap sidebar content on the Performance page

4 participants