feat: show page

This commit is contained in:
ner committed 2024-11-06 22:12:19 +02:00
1 parent abe1c795a1
commit 183c7231a1
26 files changed
+210 -176

No files matched your search

+2 -2
View File
@@ -8,13 +8,13 @@ interface Props {
}
const ButtonsGroup: FC<Props> = ({ children, className }) => (
<div className={cn('flex bg-input gap-[1px] rounded-md md:flex-grow-0 flex-grow group', className)}>
<div className={cn('flex bg-input gap-[1px] rounded-md group', className)}>
{Children.map(children, (child) => {
if (!isValidElement(child)) return null;
return cloneElement(child as ReactElement<{ className?: string }>, {
className: cn(
'h-8 gap-1 flex-grow md:px-3 px-2 [&:not(:first-child):not(:last-child)]:border-x-0 rounded-none first:border-r-0 first:rounded-l-md last:border-l-0 last:rounded-r-md',
'h-8 gap-1 flex-grow px-3 [&:not(:first-child):not(:last-child)]:border-x-0 rounded-none first:border-r-0 first:rounded-l-md last:border-l-0 last:rounded-r-md',
child.props.className
)
});