diff --git a/packages/grafana-ui/src/components/Forms/InlineField.tsx b/packages/grafana-ui/src/components/Forms/InlineField.tsx index 8750e300122..2eb4b5c1f25 100644 --- a/packages/grafana-ui/src/components/Forms/InlineField.tsx +++ b/packages/grafana-ui/src/components/Forms/InlineField.tsx @@ -45,6 +45,7 @@ export const InlineField = ({ error, transparent, interactive, + validationMessageHorizontalOverflow, ...htmlProps }: Props) => { const theme = useTheme2(); @@ -72,7 +73,11 @@ export const InlineField = ({
{cloneElement(children, { invalid, disabled, loading })} {invalid && error && ( -
+
{error}
)} @@ -100,5 +105,13 @@ const getStyles = (theme: GrafanaTheme2, grow?: boolean, shrink?: boolean) => { fieldValidationWrapper: css({ marginTop: theme.spacing(0.5), }), + validationMessageHorizontalOverflow: css({ + width: 0, + overflowX: 'visible', + + '& > *': { + whiteSpace: 'nowrap', + }, + }), }; };