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

Fix reflow of index on image load: benchmark image - #6264 #9033

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jvestell
Copy link

@jvestell jvestell commented Nov 11, 2024

This PR sets a fixed height and width for the benchmark image and description text underneath it.

The purpose of the change is to prevent page reflow and layout shifts on the docs page.

Both light mode and dark mode were tested. The benchmark image is slightly larger with the change. I thought this increase in size helps draw attention to the bolded uv result shown in the benchmark diagram. I'll draw the size back down to the original if reviewers don't like it.

closes #6264

aaaaaScreenshot 2024-11-11 151909

Comment on lines +91 to +92
height: 250px;
width: 500px;
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't these characteristics be set just for this specific image? Is there a reason you decided to implement it in the general css?

Copy link
Author

Choose a reason for hiding this comment

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

That's a good suggestion. Initially I wanted to leave the index file unmodified, but I like your suggestion. Here it is.

@zanieb
Copy link
Member

zanieb commented Nov 11, 2024

Welcome to the project!

@jvestell
Copy link
Author

Thanks for the hospitality!

@jvestell
Copy link
Author

@zanieb Friendly reminder: new commit ready for review :)

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

Successfully merging this pull request may close these issues.

Fix reflow of index on image load
2 participants