mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-14 17:08:31 +08:00
### What problem does this PR solve? - Unify top level pages structure - Standardize locale language codes (BCP 47) and time zones (IANA tz) > **Note:** > Newly created user info brings non-standard default values `timezone: "UTC+8\tAsia/Shanghai"` and `language: "English"`. ### Type of change - [x] Refactoring
18 lines
463 B
TypeScript
18 lines
463 B
TypeScript
import { cn } from '@/lib/utils';
|
|
import { PropsWithChildren } from 'react';
|
|
|
|
type CardContainerProps = { className?: string } & PropsWithChildren;
|
|
|
|
export function CardContainer({ children, className }: CardContainerProps) {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
'grid gap-6 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 auto-rows-auto content-start',
|
|
className,
|
|
)}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|