Darginec05 / Yoopta-Editor

Build Notion-like, Craft-like, Coda-like, Medium-like editors with Yoopta
https://yoopta.dev/
MIT License
784 stars 61 forks source link

[BUG] min-width: 400px applied to the .yoopta-editor class, which prevents the editor from being resized below 400px in width. #177

Closed henryttran closed 1 month ago

henryttran commented 1 month ago

Has this bug been raised before?

Description

There is a min-width: 400px applied to the .yoopta-editor class, which prevents the editor from being resized below 400px in width. This creates an issue when trying to embed the Yoopta-Editor in a container that is less than 400px wide.

Steps to Reproduce

  1. Create a container (e.g., a div) with a width of less than 400px.
  2. Add the Yoopta-Editor component inside this container.
  3. Set the width prop of the Yoopta-Editor component to a value below 400px.
  4. Observe that the editor's width does not decrease below 400px due to the min-width setting.

Environment

Screenshots

No response

Do you want to work on this issue?

Yes

If "yes" to above, please explain how you would technically implement this

Remove min-width from .yoopta-editor class