chore: achieve a cleaner look, set a max-height and a scrollbar and adjust loading skeletons

This commit is contained in:
Luis Llanes
2025-05-20 13:37:47 +05:30
committed by Sahaj Jain
parent 2e278a2515
commit e30d1cce76
4 changed files with 17 additions and 5 deletions
@@ -59,7 +59,7 @@ export function AIGenerateDialog({
<div className="px-6">
<div className="bg-muted/40 rounded-lg p-1 max-w-[500px]">
<Suspense fallback={<Loading className="min-h-[80px]" />}>
<Suspense fallback={<Loading className="min-h-[60px]" />}>
<CustomTextarea
onContentChange={handleContentChange}
onGenerate={handleGenerate}
+1 -1
View File
@@ -35,7 +35,7 @@ const CustomTextarea: React.FC<CustomTextareaProps> = ({ onContentChange, onGene
editorProps: {
attributes: {
class:
"min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50",
"min-h-[60px] max-h-[150px] wrap-anywhere text-foreground/90 scrollbar-thin overflow-y-auto w-full rounded-md bg-background px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 disabled:opacity-50",
},
handleKeyDown: (view, event) => {
if (event.key === "Enter" && !event.shiftKey) {