mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Fix partial QA-ed process tree styles (#129957)
This commit is contained in:
parent
eeee6b9db2
commit
656b6cd88b
2 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue