diff --git a/x-pack/plugins/data_enhanced/public/search/ui/background_session_indicator/background_session_indicator.scss b/x-pack/plugins/data_enhanced/public/search/ui/background_session_indicator/background_session_indicator.scss index 4856e6b4274d9..2d13d320ae78b 100644 --- a/x-pack/plugins/data_enhanced/public/search/ui/background_session_indicator/background_session_indicator.scss +++ b/x-pack/plugins/data_enhanced/public/search/ui/background_session_indicator/background_session_indicator.scss @@ -1,3 +1,23 @@ -.backgroundSessionIndicator__secondaryActionContainer { - border-left: $euiBorderThin; +.backgroundSessionIndicator { + padding: 0 $euiSizeXS; +} + +@include euiBreakpoint('xs', 's') { + .backgroundSessionIndicator__popoverContainer.euiFlexGroup--responsive .euiFlexItem { + margin-bottom: $euiSizeXS !important; + } +} + +.backgroundSessionIndicator__verticalDivider { + @include euiBreakpoint('xs', 's') { + margin-left: $euiSizeXS; + padding-left: $euiSizeXS; + } + + @include euiBreakpoint('m', 'l', 'xl') { + border-left: $euiBorderThin; + align-self: stretch; + margin-left: $euiSizeS; + padding-left: $euiSizeS; + } } diff --git a/x-pack/plugins/data_enhanced/public/search/ui/background_session_indicator/background_session_indicator.tsx b/x-pack/plugins/data_enhanced/public/search/ui/background_session_indicator/background_session_indicator.tsx index 56b3b7d710ff9..b55bd6b655371 100644 --- a/x-pack/plugins/data_enhanced/public/search/ui/background_session_indicator/background_session_indicator.tsx +++ b/x-pack/plugins/data_enhanced/public/search/ui/background_session_indicator/background_session_indicator.tsx @@ -219,6 +219,10 @@ const backgroundSessionIndicatorViewStateToProps: { }, }; +const VerticalDivider: React.FC = () => ( +
+); + export const BackgroundSessionIndicator: React.FC = (props) => { const [isPopoverOpen, setIsPopoverOpen] = React.useState(false); const onButtonClick = () => setIsPopoverOpen((isOpen) => !isOpen); @@ -233,6 +237,7 @@ export const BackgroundSessionIndicator: React.FC @@ -245,33 +250,32 @@ export const BackgroundSessionIndicator: React.FC } > - + - - - -

{popover.text}

-
-
+ +

{popover.text}

+
+
+ + {popover.primaryAction && ( - + + + )} + {popover.primaryAction && popover.secondaryAction && } + {popover.secondaryAction && ( + + )} - {popover.secondaryAction && ( - - - - )}
);