From a2a1fa51f29968073f78d8519b6ebe0ed8c2abd1 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Thu, 8 Jul 2021 15:37:41 +0100 Subject: [PATCH] AzureMonitor: Resource Picker alignment/spacing tweaks (#35125) --- .../components/ResourcePicker/NestedRows.tsx | 42 +++++++++---------- .../components/ResourcePicker/styles.ts | 1 + 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/ResourcePicker/NestedRows.tsx b/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/ResourcePicker/NestedRows.tsx index 78407c3ba5b..5542bdfe3bd 100644 --- a/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/ResourcePicker/NestedRows.tsx +++ b/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/ResourcePicker/NestedRows.tsx @@ -187,29 +187,29 @@ const NestedEntry: React.FC = ({ {/* When groups are selectable, I *think* we will want to show a 2-wide space instead of the collapse button for leaf rows that have no children to get them to align */} - - {hasChildren ? ( - - ) : ( - - )} - - - {isSelectable && ( - - - + {hasChildren ? ( + + ) : ( + )} - - - + + + {isSelectable && ( + <> + + + + )} + + +