Skip to content

Commit

Permalink
Fix minHeight styling in createRichTextBlock (#3260)
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com>
  • Loading branch information
juliawegmayr and johnnyomair authored Jan 28, 2025
1 parent c570858 commit 86c1d59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/witty-onions-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@comet/admin-rte": patch
---

Set correct editor height when using the `minHeight` option
2 changes: 1 addition & 1 deletion packages/admin/admin-rte/src/core/Rte.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ const Editor = createComponentSlot("div")<RteClassKey, OwnerState>({
${ownerState.minHeight !== undefined &&
css`
min-height: ${ownerState.minHeight};
min-height: ${`${ownerState.minHeight}px`};
`}
padding: 20px;
Expand Down

0 comments on commit 86c1d59

Please sign in to comment.