-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Editor height by default has too much empty space #724
Comments
Resolved by #719 |
minHeight option can't set to 0px.
to
https://github.com/codex-team/editor.js/pull/719/files#diff-e3bf20e89f6b22c16beb3e17fb3c8a60R154 |
@hata6502 you are welcome to fix it and send a PR |
|
When I set minHeight to 0 it creates block with 300 height and then reduces it to 0 after a second. |
I noticed this too. There's a "codex-editor__loader" class with height: 30vh, you'll need to override that
This eliminated the resize for me. May need to tweak the value for your use case. |
I added both of these and it now works .codex-editor__loader { height: 38px !important; } |
.ce-block__content, .ce-toolbar__content { max-width: calc(100% - 100px) !important; } .cdx-block { max-width: 100% !important; } |
this is true code in style css or global styles in the page |
Editor height is calculated as sum of block heights + 300px of bottomZone. This extra bottomZone of 300 px is huge for use cases such as comment section, or asking users to write small notes or paragraph.
It would be great if we have option to decrease the bottomZone height.
The text was updated successfully, but these errors were encountered: