mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-10 13:45:44 +08:00
### What problem does this PR solve? - Adjust UI styles in **Dataset** pages. - Adjust several shared components styles - Modify files and directory structure in `src/layouts` ### Type of change - [x] Refactoring
25 lines
709 B
TypeScript
25 lines
709 B
TypeScript
import { cn } from '@/lib/utils';
|
|
import { Ellipsis } from 'lucide-react';
|
|
import React from 'react';
|
|
import { Button, ButtonProps } from './ui/button';
|
|
|
|
export const MoreButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
function MoreButton({ className, size, ...props }, ref) {
|
|
return (
|
|
<Button
|
|
ref={ref}
|
|
variant="ghost"
|
|
size={size || 'icon-xs'}
|
|
className={cn(
|
|
'opacity-0 size-3.5 transition-all bg-transparent group-hover:bg-transparent',
|
|
'group-focus-within:opacity-100 group-hover:opacity-100 aria-expanded:opacity-100',
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
<Ellipsis />
|
|
</Button>
|
|
);
|
|
},
|
|
);
|