Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution] Full screen Timeline CSS fixes #72559

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const Container = styled.div`
}

.${FLYOUT_BUTTON_CLASS_NAME} {
background: ${({ theme }) => rgba(theme.eui.euiPageBackgroundColor, 1)};
border-radius: 4px 4px 0 0;
box-shadow: none;
height: 46px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const StyledResizable = styled(Resizable)`

const RESIZABLE_ENABLE = { left: true };

const RESIZABLE_DISABLED = { left: false };

const FlyoutPaneComponent: React.FC<FlyoutPaneComponentProps> = ({
children,
onClose,
Expand Down Expand Up @@ -98,10 +100,10 @@ const FlyoutPaneComponent: React.FC<FlyoutPaneComponentProps> = ({
size="l"
>
<StyledResizable
enable={RESIZABLE_ENABLE}
enable={timelineFullScreen ? RESIZABLE_DISABLED : RESIZABLE_ENABLE}
defaultSize={resizableDefaultSize}
minWidth={timelineFullScreen ? '100vw' : minWidthPixels}
maxWidth={timelineFullScreen ? '100vw' : `${maxWidthPercent}vw`}
minWidth={timelineFullScreen ? 'calc(100vw - 8px)' : minWidthPixels}
maxWidth={timelineFullScreen ? 'calc(100vw - 8px)' : `${maxWidthPercent}vw`}
handleComponent={resizableHandleComponent}
onResizeStop={onResizeStop}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const GraphOverlayComponent = ({
</EuiFlexItem>
{timelineId === TimelineId.active && timelineType === TimelineType.default && (
<EuiFlexItem grow={false}>
<EuiFlexGroup gutterSize="none">
<EuiFlexGroup alignItems="center" gutterSize="none">
<EuiFlexItem grow={false}>
<NewCase
compact={true}
Expand Down