diff --git a/dashboards-observability/public/components/metrics/index.tsx b/dashboards-observability/public/components/metrics/index.tsx
index e44b96d92..5b2e52eb7 100644
--- a/dashboards-observability/public/components/metrics/index.tsx
+++ b/dashboards-observability/public/components/metrics/index.tsx
@@ -108,6 +108,10 @@ export const Home = ({ http, chrome, parentBreadcrumb, renderProps, pplService }
'col-md-12': isSidebarClosed,
});
+ const sidebarClassName = classNames({
+ closed: isSidebarClosed,
+ });
+
return (
<>
-
+
{!isSidebarClosed &&
}
{
>
{recentlyCreatedMetrics.map((metric: any) => (
- -
- handleAddMetric(metric)}>{metric.name}
+
-
+ handleAddMetric(metric)}
+ >
+ {metric.name}
+
))}
@@ -80,7 +86,13 @@ export const Sidebar = (props: ISidebarProps) => {
{selectedMetrics.map((metric: any) => (
-
- handleRemoveMetric(metric)}>{metric.name}
+ handleRemoveMetric(metric)}
+ >
+ {metric.name}
+
))}
@@ -99,7 +111,13 @@ export const Sidebar = (props: ISidebarProps) => {
{availableMetrics.slice(0, 100).map((metric: any) => (
-
- handleAddMetric(metric)}>{metric.name}
+ handleAddMetric(metric)}
+ >
+ {metric.name}
+
))}