From 062e1d5ab8e66caf0592585a58b83381454f3abe Mon Sep 17 00:00:00 2001 From: Giordano Ricci Date: Fri, 14 May 2021 09:26:00 +0100 Subject: [PATCH] Switch: prevent wrapping for InlineSwitch (#34077) --- packages/grafana-ui/src/components/Switch/Switch.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/grafana-ui/src/components/Switch/Switch.tsx b/packages/grafana-ui/src/components/Switch/Switch.tsx index 2379cb82ab6..589e548a254 100644 --- a/packages/grafana-ui/src/components/Switch/Switch.tsx +++ b/packages/grafana-ui/src/components/Switch/Switch.tsx @@ -150,6 +150,7 @@ const getSwitchStyles = stylesFactory((theme: GrafanaTheme2, transparent?: boole cursor: pointer; padding-right: ${theme.spacing(1)}; color: ${theme.colors.text.secondary}; + white-space: nowrap; `, inlineLabelEnabled: css` color: ${theme.colors.text.primary};