Skip to content

refactor: update max size handling and improve element rendering for …#584

Merged
Darginec05 merged 2 commits intomasterfrom
576-bug-bug-with-image-sizes-after-uploading
Feb 27, 2026
Merged

refactor: update max size handling and improve element rendering for …#584
Darginec05 merged 2 commits intomasterfrom
576-bug-bug-with-image-sizes-after-uploading

Conversation

@Darginec05
Copy link
Copy Markdown
Collaborator

…media plugins

  • Removed hardcoded maxWidth and maxHeight values from embed, image, and video plugins, allowing for more flexible sizing.
  • Adjusted default sizing logic in render components to use Infinity for width and height, enhancing responsiveness.
  • Cleaned up unused code and improved state management for sizes in embed, image, and video render components.
  • Updated header component by removing unnecessary example navigation code for a cleaner layout.

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

…media plugins

- Removed hardcoded maxWidth and maxHeight values from embed, image, and video plugins, allowing for more flexible sizing.
- Adjusted default sizing logic in render components to use Infinity for width and height, enhancing responsiveness.
- Cleaned up unused code and improved state management for sizes in embed, image, and video render components.
- Updated header component by removing unnecessary example navigation code for a cleaner layout.
@Darginec05 Darginec05 linked an issue Feb 27, 2026 that may be closed by this pull request
1 task
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yoopta-editor-web Ready Ready Preview Feb 27, 2026 8:46am

Request Review

…onent

- Eliminated maxWidth and maxHeight properties from the ImageRender component to enhance flexibility in sizing.
- Maintained existing functionality while streamlining the code for improved readability and responsiveness.
@Darginec05 Darginec05 merged commit 4b842c0 into master Feb 27, 2026
1 of 2 checks passed
@Darginec05 Darginec05 deleted the 576-bug-bug-with-image-sizes-after-uploading branch February 27, 2026 08:46
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.

[BUG] Bug with image sizes after uploading

1 participant