diff --git a/x-pack/plugins/apm/public/components/app/ServiceOverview/ServiceList/index.tsx b/x-pack/plugins/apm/public/components/app/ServiceOverview/ServiceList/index.tsx index 0ce07a3c0ad27..3d1572689c5bf 100644 --- a/x-pack/plugins/apm/public/components/app/ServiceOverview/ServiceList/index.tsx +++ b/x-pack/plugins/apm/public/components/app/ServiceOverview/ServiceList/index.tsx @@ -53,6 +53,17 @@ const AppLink = styled(TransactionOverviewLink)` ${truncate('100%')}; `; +const ToolTipWrapper = styled.span` + width: 100%; + .apmServiceList__serviceNameTooltip { + width: 100%; + .apmServiceList__serviceNameContainer { + // removes 24px referent to the icon placed on the left side of the text. + width: calc(100% - 24px); + } + } +`; + export const SERVICE_COLUMNS: Array> = [ { field: 'healthStatus', @@ -77,24 +88,27 @@ export const SERVICE_COLUMNS: Array> = [ width: '40%', sortable: true, render: (_, { serviceName, agentName }) => ( - - - {agentName && ( - - + + + + {agentName && ( + + + + )} + + + {formatString(serviceName)} + - )} - - - {formatString(serviceName)} - - - - + + + ), }, { diff --git a/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/service_overview.test.tsx.snap b/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/service_overview.test.tsx.snap index ee3a4fce0dbaa..611ee4e07134c 100644 --- a/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/service_overview.test.tsx.snap +++ b/x-pack/plugins/apm/public/components/app/ServiceOverview/__test__/__snapshots__/service_overview.test.tsx.snap @@ -128,7 +128,7 @@ NodeList [ exports[`Service Overview -> View should render services, when list is not empty 1`] = ` NodeList [ - .c0 { + .c1 { font-size: 16px; max-width: 100%; white-space: nowrap; @@ -136,6 +136,18 @@ NodeList [ text-overflow: ellipsis; } +.c0 { + width: 100%; +} + +.c0 .apmServiceList__serviceNameTooltip { + width: 100%; +} + +.c0 .apmServiceList__serviceNameTooltip .apmServiceList__serviceNameContainer { + width: calc(100% - 24px); +} + @@ -181,32 +193,36 @@ NodeList [ class="euiTableCellContent euiTableCellContent--overflowingContent" > - - + @@ -401,7 +417,7 @@ NodeList [ , - .c0 { + .c1 { font-size: 16px; max-width: 100%; white-space: nowrap; @@ -409,6 +425,18 @@ NodeList [ text-overflow: ellipsis; } +.c0 { + width: 100%; +} + +.c0 .apmServiceList__serviceNameTooltip { + width: 100%; +} + +.c0 .apmServiceList__serviceNameTooltip .apmServiceList__serviceNameContainer { + width: calc(100% - 24px); +} + @@ -454,32 +482,36 @@ NodeList [ class="euiTableCellContent euiTableCellContent--overflowingContent" > - - +