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: make screenshots without width and height work #2863

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

stepan662
Copy link
Contributor

No description provided.

@stepan662 stepan662 marked this pull request as ready for review January 23, 2025 11:15
@stepan662 stepan662 requested a review from JanCizmar January 23, 2025 11:15
@stepan662 stepan662 merged commit f207a0d into main Jan 23, 2025
37 checks passed
@stepan662 stepan662 deleted the stepangranat/fix-legacy-images branch January 23, 2025 12:50
TolgeeMachine added a commit that referenced this pull request Jan 23, 2025
## [3.96.1](v3.96.0...v3.96.1) (2025-01-23)

### Bug Fixes

* make screenshots without width and height work ([#2863](#2863)) ([f207a0d](f207a0d))
* resize observer throwing errors into console ([#2866](#2866)) ([22fe4c6](22fe4c6))
return (
<svg
viewBox={`0 0 ${screenshot.width} ${screenshot.height}`}
viewBox={`0 0 ${screenshot.width || size.width} ${
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be cleaner if you defined in the dimensions in some property like

const dimensions = screenshot.width && screenshot.height ? {width: ..., height ...} ? {width: ..., height ...} 

and then use it everywhere instead of the fallbacking

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.

2 participants