mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
Merge pull request #2421 from LinuxKunaL/main
fix(rich-input.tsx): replace default scrollbar with themed scrollbar in Summary Editor, fixed issue #2420
This commit is contained in:
@ -44,6 +44,7 @@ import { Button } from "./button";
|
||||
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "./form";
|
||||
import { Input } from "./input";
|
||||
import { Popover, PopoverContent } from "./popover";
|
||||
import { ScrollArea } from "./scroll-area";
|
||||
import { Skeleton } from "./skeleton";
|
||||
import { Toggle } from "./toggle";
|
||||
import { Tooltip } from "./tooltip";
|
||||
@ -503,7 +504,7 @@ export const RichInput = forwardRef<Editor, RichInputProps>(
|
||||
editorProps: {
|
||||
attributes: {
|
||||
class: cn(
|
||||
"prose prose-sm prose-zinc max-h-[200px] max-w-none overflow-y-scroll dark:prose-invert focus:outline-none [&_*]:my-2",
|
||||
"prose prose-sm prose-zinc max-h-[200px] max-w-none dark:prose-invert focus:outline-none [&_*]:my-2",
|
||||
editorClassName,
|
||||
),
|
||||
},
|
||||
@ -526,15 +527,17 @@ export const RichInput = forwardRef<Editor, RichInputProps>(
|
||||
<div>
|
||||
{!hideToolbar && <Toolbar editor={editor} />}
|
||||
|
||||
<EditorContent
|
||||
editor={editor}
|
||||
className={cn(
|
||||
"grid min-h-[160px] w-full rounded-sm border bg-transparent px-3 py-2 text-sm placeholder:opacity-80 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50",
|
||||
hideToolbar && "pt-2",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
<ScrollArea orientation="vertical" className="rounded-sm border p-3 pt-0">
|
||||
<EditorContent
|
||||
editor={editor}
|
||||
className={cn(
|
||||
"grid min-h-[140px] w-full bg-transparent text-sm placeholder:opacity-80 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50",
|
||||
hideToolbar && "pt-2",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
</ScrollArea>
|
||||
|
||||
{footer?.(editor)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user