From b36cc04cd08bea0e713c2284adfaf1c9e443cd68 Mon Sep 17 00:00:00 2001 From: Zhongnan Su Date: Fri, 13 Sep 2024 16:47:01 +0000 Subject: [PATCH] [Page Headder]Add responsiveness for page header Signed-off-by: Zhongnan Su --- .../header/__snapshots__/header.test.tsx.snap | 1464 +++++++++-------- src/core/public/chrome/ui/header/header.scss | 8 + src/core/public/chrome/ui/header/header.tsx | 51 +- .../create_data_source_menu.tsx | 2 +- 4 files changed, 807 insertions(+), 718 deletions(-) diff --git a/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap b/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap index f5a8d1ce5f09..6087641cff87 100644 --- a/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap +++ b/src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap @@ -18106,723 +18106,785 @@ exports[`Header renders page header with application title 1`] = `
-
-
- -

- testTitle -

-
+ +
+ +
+ +

+ testTitle +

+
+
+
+
+
+ +
+ +
+ +
+ +
+ + +
+ +
+
+
+ + +
+ +
+ +
+ +
+ + +
+ +
+
+
+ +
+
- - +
-
- -
- - -
- -
-
- -
- -
- -
- - -
- -
-
-
- - -
- -
- -
-
- -
- -
- -
- - -
- -
-
- -
- -
- -
- - -
- -
-
- -
- -
- -
- - -
- + className="euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--directionRow euiFlexGroup--responsive" + > + +
+ +
+ +
+
+ +
+ +
+ +
+ + +
+ +
+
+
+ + +
+ +
+ +
+ +
+ +
+ + +
+ +
+ +
+
+ +
+ +
+ +
+ + +
+ +
+
+
+ +
+
-
+
- +
- - - - {breadcrumbs &&

{breadcrumbs[breadcrumbs.length - 1]?.text}

} -
-
- - {renderBadge()} - {renderLeftControls()} -
- - - {renderCenterControls()} - {renderActionMenu()} - {renderRightControls()} - + + {/* Left Section */} + + + + + + {breadcrumbs &&

{breadcrumbs[breadcrumbs.length - 1]?.text}

} +
+
+
+ + {renderBadge()} + + {renderLeftControls()} +
+
+ + {/* Right Section */} + + + {renderCenterControls()} + + {renderActionMenu()} + + {renderRightControls()} + + +
diff --git a/src/plugins/data_source_management/public/components/data_source_menu/create_data_source_menu.tsx b/src/plugins/data_source_management/public/components/data_source_menu/create_data_source_menu.tsx index 1d053c0449b7..436d34466510 100644 --- a/src/plugins/data_source_management/public/components/data_source_menu/create_data_source_menu.tsx +++ b/src/plugins/data_source_management/public/components/data_source_menu/create_data_source_menu.tsx @@ -20,7 +20,7 @@ export function createDataSourceMenu() { if (props.setMenuMountPoint) { return ( - +