Skip to content

Commit

Permalink
group settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Feb 3, 2025
1 parent f980fd0 commit 12c4d88
Show file tree
Hide file tree
Showing 2 changed files with 404 additions and 373 deletions.
9 changes: 6 additions & 3 deletions frontend/src/components/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,20 @@ export function Field({
...props
}: FieldProps): ReturnType<typeof KeaField> {
const labelNode = label ? (
<Label>
<Label className={!labelRight ? '@md:w-1/3' : ''}>
{label}
{tooltip ? <Tooltip title={tooltip} /> : null}
</Label>
) : null
const template: KeaFieldProps['template'] = ({ label, kids, error }) => {
return (
<div className={clsx('space-y-1', className)} {...(error ? { 'data-field-with-error': true } : {})}>
<div
className={clsx('space-y-1 @md:flex @md:gap-2', className)}
{...(error ? { 'data-field-with-error': true } : {})}
>
<>
{labelRight ? (
<div className="flex w-full justify-between items-center">
<div className="flex w-full justify-between items-center @md:w-1/3">
{labelNode}
{labelRight}
</div>
Expand Down
Loading

0 comments on commit 12c4d88

Please sign in to comment.