GrapesJS / GrapesJS/grapesjs

BUG: Couldnt Resize image

Open
#6,549 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
26.2k
Forks
4.6k
Avg merge
2d 21h
Merged PRs (30d)
6

Description

### GrapesJS version

- [x] I confirm to use the latest version of GrapesJS

### What browser are you using?

Chrome

### Reproducible demo link

https://codepen.io/Harshsne/pen/YPXdgmj

### Describe the bug

**How to reproduce the bug?**
1. upload an image
2. change it to mobile view
3. resize the image

![Image](https://github.com/user-attachments/assets/99f43e87-39bd-488c-8d64-e13ed698d49f)

**What is the expected behavior?**
When manually changing width and height in style manager ,the image is resized.

**What is the current behavior?**
couldn't resize the image

Reason would be !important is not added when resizing image in canvas , so the original styles are not overridden.

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.