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: improve scaling of screenshot width #1306

Merged
merged 4 commits into from Jan 29, 2024

Conversation

eglitise
Copy link
Collaborator

This PR removes the 500px hard limit for max screenshot width, and instead sets it to 40% of the window width. This allows for much better scaling at larger window widths.
I didn't notice any changes for portrait mode, but in landscape mode, with default window size, the screenshot was 9px wider (meaning the source/selected element is 9px narrower). I don't think this should negatively affect usability.
Should improve the situation for #1216.

@eglitise eglitise added the fix This resolves a user-facing problem label Jan 29, 2024
@eglitise eglitise merged commit 20b121d into appium:main Jan 29, 2024
5 checks passed
@eglitise eglitise deleted the improve-screenshot-width-scaling branch January 29, 2024 14:13
Copy link
Member

@jlipps jlipps left a comment

Choose a reason for hiding this comment

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

👍

shiva-guntoju pushed a commit to shiva-guntoju/appium-inspector that referenced this pull request Feb 2, 2024
* fix: improve scaling of screenshot width

* chore: cleanup

* style: equalize flex-grow factors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix This resolves a user-facing problem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants