From c5f070170765b017c86768ffb9c5e8c62324daa4 Mon Sep 17 00:00:00 2001 From: Kristina Date: Tue, 8 Feb 2022 08:21:34 -0600 Subject: [PATCH] Reduce spacing for Explore/Logs switches (#44935) --- .../src/components/Switch/Switch.tsx | 5 +-- public/app/features/explore/Logs.tsx | 45 +++++++++++++++---- 2 files changed, 38 insertions(+), 12 deletions(-) diff --git a/packages/grafana-ui/src/components/Switch/Switch.tsx b/packages/grafana-ui/src/components/Switch/Switch.tsx index 070444eb848..c80c8fae90c 100644 --- a/packages/grafana-ui/src/components/Switch/Switch.tsx +++ b/packages/grafana-ui/src/components/Switch/Switch.tsx @@ -47,12 +47,11 @@ export interface InlineSwitchProps extends Props { } export const InlineSwitch = React.forwardRef( - ({ transparent, showLabel, label, value, id, ...props }, ref) => { + ({ transparent, className, showLabel, label, value, id, ...props }, ref) => { const theme = useTheme2(); const styles = getSwitchStyles(theme, transparent); - return ( -
+
{showLabel && (