Fix partial QA-ed process tree styles (#129957) (#129964)

(cherry picked from commit 656b6cd88b)

Co-authored-by: Jack <zizhou.wang@elastic.co>
This commit is contained in:
Kibana Machine 2022-04-11 20:18:11 -05:00 committed by GitHub
parent 6a8d17c253
commit 3c0f5797dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -16,14 +16,13 @@ export const useStyles = () => {
const { size, colors, border } = euiTheme;
const container: CSSObject = {
margin: `${size.xs} ${size.s} 0 ${size.xs}`,
margin: `${size.xs} ${size.base} 0 ${size.xs}`,
color: colors.text,
padding: `${size.s} 0`,
borderStyle: 'solid',
borderColor: colors.lightShade,
borderWidth: border.width.thin,
borderRadius: border.radius.medium,
maxWidth: 800,
maxHeight: 378,
overflowY: 'auto',
backgroundColor: colors.emptyShade,

View file

@ -23,6 +23,7 @@ export const useStyles = ({ depth, hasAlerts, hasInvestigatedAlert, isSelected }
const { colors, border, size, font } = euiTheme;
const TREE_INDENT = `calc(${size.l} + ${size.xxs})`;
const PROCESS_TREE_LEFT_PADDING = size.s;
const darkText: CSSObject = {
color: colors.text,
@ -79,10 +80,10 @@ export const useStyles = ({ depth, hasAlerts, hasInvestigatedAlert, isSelected }
height: '100%',
pointerEvents: 'none',
content: `''`,
marginLeft: `calc(-${depth} * ${TREE_INDENT})`,
marginLeft: `calc(-${depth} * ${TREE_INDENT} - ${PROCESS_TREE_LEFT_PADDING})`,
borderLeft: `${size.xs} solid ${borderColor}`,
backgroundColor: bgColor,
width: `calc(100% + ${depth} * ${TREE_INDENT})`,
width: `calc(100% + ${depth} * ${TREE_INDENT} + ${PROCESS_TREE_LEFT_PADDING})`,
transform: `translateY(-${size.xs})`,
},
};
@ -99,8 +100,8 @@ export const useStyles = ({ depth, hasAlerts, hasInvestigatedAlert, isSelected }
verticalAlign: 'middle',
color: colors.mediumShade,
wordBreak: 'break-all',
minHeight: size.l,
lineHeight: size.l,
minHeight: `calc(${size.l} - ${size.xxs})`,
lineHeight: `calc(${size.l} - ${size.xxs})`,
};
const workingDir: CSSObject = {