Skip to content

Commit edbae94

Browse files
committed
makes summary template text input scrollable
1 parent a274138 commit edbae94

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

web/frontend/src/components/SummaryTemplateDialog.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function SummaryTemplateDialog({ open, onOpenChange, onSave, initial }: S
6868

6969
return (
7070
<Dialog open={open} onOpenChange={onOpenChange}>
71-
<DialogContent className="sm:max-w-lg bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700">
71+
<DialogContent className="sm:max-w-lg max-h-[85vh] overflow-y-auto bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700">
7272
<DialogHeader>
7373
<DialogTitle className="text-gray-900 dark:text-gray-100">{initial ? 'Edit Summary Template' : 'New Summary Template'}</DialogTitle>
7474
<DialogDescription className="text-gray-600 dark:text-gray-400">
@@ -100,7 +100,13 @@ export function SummaryTemplateDialog({ open, onOpenChange, onSave, initial }: S
100100
</div>
101101
<div className="space-y-2">
102102
<Label className="text-gray-700 dark:text-gray-300">Prompt</Label>
103-
<Textarea rows={8} value={prompt} onChange={(e) => setPrompt(e.target.value)} placeholder="Write the summarization instructions..." />
103+
<Textarea
104+
rows={8}
105+
className="resize-y max-h-[50vh]"
106+
value={prompt}
107+
onChange={(e) => setPrompt(e.target.value)}
108+
placeholder="Write the summarization instructions..."
109+
/>
104110
</div>
105111
</div>
106112

0 commit comments

Comments
 (0)