[APM] Remove top padding from Waterfall container (#87312) (#87434)

* Removed unused imports and props
This commit is contained in:
Casper Hübertz 2021-01-06 10:58:45 +01:00 committed by GitHub
parent 853dfaedcb
commit 24f9ed1e0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,6 @@ import { History, Location } from 'history';
import React, { useState } from 'react';
import { useHistory } from 'react-router-dom';
import styled from 'styled-components';
import { px } from '../../../../../../style/variables';
import { Timeline } from '../../../../../shared/charts/Timeline';
import { HeightRetainer } from '../../../../../shared/HeightRetainer';
import { fromQuery, toQuery } from '../../../../../shared/Links/url_helpers';
@ -55,10 +54,7 @@ const toggleFlyout = ({
});
};
const WaterfallItemsContainer = styled.div<{
paddingTop: number;
}>`
padding-top: ${(props) => px(props.paddingTop)};
const WaterfallItemsContainer = styled.div`
border-bottom: 1px solid ${({ theme }) => theme.eui.euiColorMediumShade};
`;
@ -143,7 +139,7 @@ export function Waterfall({
margins={TIMELINE_MARGINS}
/>
</div>
<WaterfallItemsContainer paddingTop={TIMELINE_MARGINS.top}>
<WaterfallItemsContainer>
{renderItems(waterfall.childrenByParentId)}
</WaterfallItemsContainer>
</div>