fix: plugins: bad layout with config.type=array and long helperText
Massimo Melina committed
Feb 16, 2025 at 11:59 UTC
ff4a376d5ca152f9e65f0ea2a6363aefcc3e4fd8
2 files changed
+3
-3
admin/src/ArrayField.ts
+2
-2
@@ -25,8 +25,8 @@ export function ArrayField<T extends object>({ label, helperText, fields, value,
25
setApi?.({ isEqual: isOrderedEqual }) // don't rely on stringify, as it wouldn't work with non-json values
26
const [undo, setUndo] = useState<typeof value>()
27
return h(Fragment, {},
28
- h(Flex, {},
29
- label && h(FormLabel, { sx: { ml: 1 } }, label),
28
+ h(Flex, { rowGap: 0, flexWrap: 'wrap' },
29
+ label && h(FormLabel, { sx: { ml: .5 } }, label),
30
helperText && h(FormHelperText, {}, helperText),
31
),
32
h(Box, { ...rest },
src/cross.ts
+1
-1
@@ -466,7 +466,7 @@ export function makeMatcher(mask: string, emptyMaskReturns=false) {
466
}
467
468
export function matches(s: string, mask: string, emptyMaskReturns=false) {
469
- return makeMatcher(mask, emptyMaskReturns)(s) // adding () will allow us to use the pipe at root level
469
+ return makeMatcher(mask, emptyMaskReturns)(s)
470
}
471
472
// if delimiter is specified, it is prefixed to symbols. If it contains a space, the part after the space is considered as suffix.