mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 06:40:29 +08:00
Feat: Integrate the name, avatar, and description of chat and search into a single component. (#14008)
### What problem does this PR solve? Feat: Integrate the name, avatar, and description of chat and search into a single component. ### Type of change - [x] New Feature (non-breaking change which adds functionality) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Inline-editable avatar, name, and description fields * Expandable content blocks in search results * New RAGFlow heading/logo component * **Refactor** * Replaced scattered form fields with a composed Avatar/Name/Description component * Mindmap drawer converted to a sheet-based drawer and layout cleanup * Simplified search page controls and layout; improved scroll viewport handling * **Chores** * Added/updated English and Chinese localization keys (placeholders, view more/less) <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Yingfeng <yingfeng.zhang@gmail.com>
This commit is contained in:
@@ -28,16 +28,24 @@ const ScrollBar = React.forwardRef<
|
||||
));
|
||||
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
||||
|
||||
interface ScrollAreaProps extends React.ComponentPropsWithoutRef<
|
||||
typeof ScrollAreaPrimitive.Root
|
||||
> {
|
||||
viewportClassName?: string;
|
||||
}
|
||||
|
||||
const ScrollArea = React.forwardRef<
|
||||
React.ElementRef<typeof ScrollAreaPrimitive.Root>,
|
||||
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
|
||||
>(({ className, children, ...props }, ref) => (
|
||||
ScrollAreaProps
|
||||
>(({ className, viewportClassName, children, ...props }, ref) => (
|
||||
<ScrollAreaPrimitive.Root
|
||||
ref={ref}
|
||||
className={cn('relative overflow-hidden', className)}
|
||||
{...props}
|
||||
>
|
||||
<ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">
|
||||
<ScrollAreaPrimitive.Viewport
|
||||
className={cn('h-full w-full rounded-[inherit]', viewportClassName)}
|
||||
>
|
||||
{children}
|
||||
</ScrollAreaPrimitive.Viewport>
|
||||
<ScrollBar orientation="horizontal" />
|
||||
|
||||
Reference in New Issue
Block a user