From 077879ae6efed1ab66ffe17fdebc84fd7707d04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Casper=20H=C3=BCbertz?= Date: Wed, 19 Feb 2020 10:44:41 +0100 Subject: [PATCH] [APM] Fix trace sample double pagination summary (#57558) * [APM] Remove PaginationContainer Removing the old pagination from the trace summary title. * [APM] Removing PaginationContainer component ref * [APM] Change the vertical alignment to center * [APM] Leaving the EuiPagination component in place Co-authored-by: Elastic Machine --- .../WaterfallWithSummmary/index.tsx | 34 ++++--------------- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/index.tsx b/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/index.tsx index 6dcab6c6b97c1..69557241c42aa 100644 --- a/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/index.tsx +++ b/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/index.tsx @@ -16,10 +16,8 @@ import { import { i18n } from '@kbn/i18n'; import { Location } from 'history'; import React, { useEffect, useState } from 'react'; -import styled from 'styled-components'; import { IBucket } from '../../../../../server/lib/transactions/distribution/get_buckets/transform'; import { IUrlParams } from '../../../../context/UrlParamsContext/types'; -import { px, units } from '../../../../style/variables'; import { history } from '../../../../utils/history'; import { fromQuery, toQuery } from '../../../shared/Links/url_helpers'; import { LoadingStatePrompt } from '../../../shared/LoadingStatePrompt'; @@ -29,20 +27,6 @@ import { MaybeViewTraceLink } from './MaybeViewTraceLink'; import { TransactionTabs } from './TransactionTabs'; import { IWaterfall } from './WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers'; -const PaginationContainer = styled.div` - margin-left: ${px(units.quarter)}; - display: flex; - align-items: center; - - > span:first-of-type { - font-weight: 600; - } - - > span:last-of-type { - margin-right: ${px(units.half)}; - } -`; - interface Props { urlParams: IUrlParams; location: Location; @@ -102,7 +86,7 @@ export const WaterfallWithSummmary: React.FC = ({ return ( - +
{i18n.translate('xpack.apm.transactionDetails.traceSampleTitle', { @@ -111,16 +95,12 @@ export const WaterfallWithSummmary: React.FC = ({
{traceSamples && ( - - {sampleActivePage + 1} - /{traceSamples.length} - - + )}