diff --git a/public/components/metrics/top_menu/top_menu.scss b/public/components/metrics/top_menu/top_menu.scss index 8c3be93ff..66d99cc18 100644 --- a/public/components/metrics/top_menu/top_menu.scss +++ b/public/components/metrics/top_menu/top_menu.scss @@ -13,4 +13,8 @@ .resolutionSelectText { width: 100px; +} + +.search-bar-top-menu{ + width:25vw; } \ No newline at end of file diff --git a/public/components/metrics/top_menu/top_menu.tsx b/public/components/metrics/top_menu/top_menu.tsx index d2aaf5492..96c8701ec 100644 --- a/public/components/metrics/top_menu/top_menu.tsx +++ b/public/components/metrics/top_menu/top_menu.tsx @@ -10,15 +10,17 @@ import { ShortDate, OnTimeChangeProps, EuiButton, + EuiFieldSearch, + EuiButtonIcon, } from '@elastic/eui'; import { DurationRange } from '@elastic/eui/src/components/date_picker/types'; import { uiSettingsService } from '../../../../common/utils'; import React, { useState } from 'react'; - -import './top_menu.scss'; import { MetricType } from '../../../../common/types/metrics'; import { resolutionOptions } from '../../../../common/constants/metrics'; +import './top_menu.scss'; + interface TopMenuProps { IsTopPanelDisabled: boolean; startTime: ShortDate; @@ -106,9 +108,19 @@ export const TopMenu = ({ <> - -

Metrics

-
+ + + + + + + +