From 402e48f9262eabfe7208f1f9c91618d14f509f47 Mon Sep 17 00:00:00 2001 From: Miki Date: Wed, 31 Jan 2024 09:14:28 -0800 Subject: [PATCH] Decouple DataExplorer CSS class names with those of Observability Signed-off-by: Miki --- .../data_explorer/public/components/app_container.scss | 6 +++--- .../data_explorer/public/components/app_container.tsx | 4 ++-- src/plugins/data_explorer/public/components/no_view.tsx | 2 +- .../data_explorer/public/components/sidebar/index.scss | 6 +++--- .../data_explorer/public/components/sidebar/index.tsx | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/plugins/data_explorer/public/components/app_container.scss b/src/plugins/data_explorer/public/components/app_container.scss index 7bd5ed6f69f6..bf5339be7d16 100644 --- a/src/plugins/data_explorer/public/components/app_container.scss +++ b/src/plugins/data_explorer/public/components/app_container.scss @@ -1,6 +1,6 @@ $osdHeaderOffset: $euiHeaderHeightCompensation; -.deSidebar { +.dataExplorerSidebar { height: 100%; @include ouiBreakpoint("xs", "s", "m") { @@ -9,7 +9,7 @@ $osdHeaderOffset: $euiHeaderHeightCompensation; } } -.deLayout { +.dataExplorerLayout { height: calc(100vh - #{$osdHeaderOffset}); &__canvas { @@ -17,6 +17,6 @@ $osdHeaderOffset: $euiHeaderHeightCompensation; } } -.headerIsExpanded .deLayout { +.headerIsExpanded .dataExplorerLayout { height: calc(100vh - #{$osdHeaderOffset * 2}); } diff --git a/src/plugins/data_explorer/public/components/app_container.tsx b/src/plugins/data_explorer/public/components/app_container.tsx index 6752845649ee..9e121b53bce7 100644 --- a/src/plugins/data_explorer/public/components/app_container.tsx +++ b/src/plugins/data_explorer/public/components/app_container.tsx @@ -26,7 +26,7 @@ export const AppContainer = ({ view, params }: { view?: View; params: AppMountPa // Render the application DOM. return ( - + {/* TODO: improve fallback state */} Loading...}> @@ -46,7 +46,7 @@ export const AppContainer = ({ view, params }: { view?: View; params: AppMountPa - + diff --git a/src/plugins/data_explorer/public/components/no_view.tsx b/src/plugins/data_explorer/public/components/no_view.tsx index 20bdf83f1de6..e7a476437405 100644 --- a/src/plugins/data_explorer/public/components/no_view.tsx +++ b/src/plugins/data_explorer/public/components/no_view.tsx @@ -11,7 +11,7 @@ export const NoView = () => { return ( { ); return ( - + { paddingSize="s" grow={false} color="transparent" - className="deSidebar_dataSource" + className="dataExplorerSidebar__dataSource" >