File tree 2 files changed +13
-8
lines changed
app/(app)/automation/knowledge 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,10 @@ export function KnowledgeForm({
48
48
title : editingItem . title ,
49
49
content : editingItem . content ,
50
50
}
51
- : undefined ,
51
+ : {
52
+ title : "How to draft replies" ,
53
+ content : "" ,
54
+ } ,
52
55
} ) ;
53
56
54
57
const editorRef = useRef < TiptapHandle > ( null ) ;
@@ -101,12 +104,14 @@ export function KnowledgeForm({
101
104
name = "content"
102
105
control = { control }
103
106
render = { ( { field } ) => (
104
- < Tiptap
105
- ref = { editorRef }
106
- initialContent = { field . value ?? "" }
107
- className = "mt-1"
108
- autofocus = { false }
109
- />
107
+ < div className = "max-h-[600px] overflow-y-auto" >
108
+ < Tiptap
109
+ ref = { editorRef }
110
+ initialContent = { field . value ?? "" }
111
+ className = "mt-1"
112
+ autofocus = { false }
113
+ />
114
+ </ div >
110
115
) }
111
116
/>
112
117
{ errors . content && (
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export const Tiptap = forwardRef<
53
53
editorProps : {
54
54
attributes : {
55
55
class : cn (
56
- "prose prose-sm sm:prose-base dark:prose-invert max-w-none focus:outline-none min-h-[120px] px-3 py-2 " ,
56
+ "px-3 py-2 max-w-none focus:outline-none min-h-[120px]" ,
57
57
className ,
58
58
) ,
59
59
} ,
You can’t perform that action at this time.
0 commit comments