Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tall-carrots-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@genseki/react": patch
---

fix: richText height and resizeable
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const RichTextEditor = (props: RichTextEditorProps) => {
isDisabled={props.isDisabled}
isInvalid={isInvalid}
data-loading={props.isPending ? 'true' : undefined}
className="overflow-auto relative resize-x"
className="overflow-auto relative resize-none w-full"
>
<div
className={cn(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {
useEditor,
} from '@tiptap/react'

import { cn } from '../../../../utils/cn'

interface EditorProviderPropsWithEditor extends EditorProviderProps {
editor?: Editor | null
}
Expand All @@ -29,7 +31,13 @@ export function EditorProvider({
<EditorContext.Provider value={{ editor: editorInstance }}>
{slotBefore}
<EditorConsumer>
{() => <EditorContent editor={editorInstance} {...editorContainerProps} />}
{() => (
<EditorContent
editor={editorInstance}
className={cn('min-h-[240px]', editorContainerProps.className)}
{...editorContainerProps}
/>
)}
</EditorConsumer>
{children}
{slotAfter}
Expand Down
Loading