+
diff --git a/app/globals.css b/app/globals.css
index 3cf87c5c..18cf97ef 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -117,7 +117,7 @@ body {
/* Mention styles */
.mention {
- @apply bg-primary/10 text-primary px-1 rounded-md;
+ @apply bg-primary/10 text-primary rounded-md px-1;
}
@keyframes text {
@@ -132,3 +132,12 @@ body {
.animate-text {
animation: text 3s linear infinite;
}
+
+.scrollbar-thin {
+ scrollbar-width: thin;
+ scrollbar-color: var(--color-border) transparent;
+
+ &::-webkit-scrollbar {
+ width: 8px;
+ }
+}
diff --git a/components/editor/action-bar/components/ai-generate-dialog.tsx b/components/editor/action-bar/components/ai-generate-dialog.tsx
index a5374a52..ecb48db3 100644
--- a/components/editor/action-bar/components/ai-generate-dialog.tsx
+++ b/components/editor/action-bar/components/ai-generate-dialog.tsx
@@ -59,7 +59,7 @@ export function AIGenerateDialog({
- }>
+ }>
= ({ 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) {