Skip to content

Commit 6309e63

Browse files
authored
Adjust metrics top menu layout to avoid overflow (opensearch-project#398)
Signed-off-by: Joshua Li <joshuali925@gmail.com>
1 parent b8f9ca3 commit 6309e63

File tree

5 files changed

+2945
-2991
lines changed

5 files changed

+2945
-2991
lines changed

public/components/metrics/sidebar/__tests__/__snapshots__/searchbar.test.tsx.snap

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ exports[`Search Bar Component Search Side Bar Component with available metrics 1
1515
<Component
1616
setSearch={[MockFunction]}
1717
>
18-
<div>
18+
<div
19+
className="metrics-search-bar-input"
20+
>
1921
<EuiSearchBar
2022
box={
2123
Object {
@@ -164,7 +166,9 @@ exports[`Search Bar Component Search Side Bar Component with no available metric
164166
<Component
165167
setSearch={[MockFunction]}
166168
>
167-
<div>
169+
<div
170+
className="metrics-search-bar-input"
171+
>
168172
<EuiSearchBar
169173
box={
170174
Object {

public/components/metrics/sidebar/search_bar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const SearchBar = (props: ISearchBarProps) => {
2828
};
2929

3030
return (
31-
<div>
31+
<div className="metrics-search-bar-input">
3232
<EuiSearchBar
3333
box={{
3434
placeholder: 'Search for metrics',

0 commit comments

Comments
 (0)