Playground, `ImageResizer />`: image overflows - `width`/`maxWidth` issue?
See original GitHub issue- This issue comes from the playground example.
- The
<img />
component styling has not been altered - I am happy to create a PR if y’all think the below is an actual issue and not something I’m missing/not understanding fully.
- If I’m missing something could someone please elaborate on usage of this?
Lexical version: v0.5.0
Steps To Reproduce / The current behavior
- Add image with “Insert image”
- resize the added image to some size
- resize the screen to something small and see the original image overflow-x
Enough space for set width:
Small screen (not enough space) for set width:
The expected behavior
Image to be resized to the desired size IF the screen space allows for it, otherwise shrink to maxWidth: 100%
, which would result in something like this:
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
CSS image resize issue - html - Stack Overflow
I have a problem when resizing images I have ...
Read more >Error trying to resize some JPGs (i.e. after XnView saved it ...
Issue -Bug Something isn't working Product-Image Resizer Things regarding image resizing module Resolution-Won't fix A topic we won't fix.
Read more >Resizing background images with background-size - CSS
The background-size CSS property lets you resize the background image of an element, overriding the default behavior of tiling the image at ...
Read more >Resizing an image in a post? - Meta Stack Exchange
@CiroSantilli You need to put the parameters in order: src , width , height . Ran into the same problem myself and didn't...
Read more >PowerToys Image Resizer utility for Windows - Microsoft Learn
Image Resizer allows you to resize images by dragging and dropping your selected files with the right mouse button. This way, resized pictures...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yea, this sounds like it could be improved. PR is welcome here.
Hey Acy,
Wooho, sounds great, will do! I’m taking off for conference travels for next 2 weeks, can’t wait to be back and set up a Zoom coffee “)
Cheers, @SᴄᴏᴛᴛAɢɪʀs On Oct 26, 2022, 4:59 PM +0300, Acy Watson @.***>, wrote: