Skip to content

Commit

Permalink
[APM] Account for removed EUI theme avatar sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Apr 7, 2022
1 parent 793d208 commit 64651f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const zIndexEdgeHighlight = 110;
const zIndexEdgeHover = 120;

export const getNodeHeight = (theme: EuiTheme): number =>
parseInt(theme.eui.avatarSizing.l.size, 10);
parseInt(theme.eui.euiSizeXXL, 10);

function isService(el: cytoscape.NodeSingular) {
return el.data(SERVICE_NAME) !== undefined;
Expand Down Expand Up @@ -156,7 +156,7 @@ const getStyle = (theme: EuiTheme): cytoscape.Stylesheet[] => {
'text-max-width': '200px',
'text-valign': 'bottom',
'text-wrap': 'ellipsis',
width: theme.eui.avatarSizing.l.size,
width: theme.eui.euiSizeXXL,
'z-index': zIndexNode,
},
},
Expand Down

0 comments on commit 64651f1

Please sign in to comment.