mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[8.2.1] [Session View] mouse over highlighting gap fix (#129679)
* mouse over highlighting gap fix * addressing PR comments + more CSS fixes * added show more button if we have more than 5 execs * added padding for first alert in groups alert * fix check CI issue * addressing PR comments
This commit is contained in:
parent
330dbbe304
commit
2d31ac1a88
5 changed files with 20 additions and 7 deletions
|
@ -66,6 +66,7 @@ export const DetailPanelAlertGroupItem = ({
|
|||
data-test-subj={ALERT_GROUP_ITEM_COUNT_TEST_ID}
|
||||
className="eui-alignCenter"
|
||||
size="m"
|
||||
css={styles.alertCountArrowPad}
|
||||
>
|
||||
{alertsCount}
|
||||
</EuiNotificationBadge>
|
||||
|
|
|
@ -59,7 +59,7 @@ export const DetailPanelAlertListItem = ({
|
|||
const forceState = !isInvestigated ? 'open' : undefined;
|
||||
|
||||
return minimal ? (
|
||||
<div data-test-subj={ALERT_LIST_ITEM_TEST_ID}>
|
||||
<div data-test-subj={ALERT_LIST_ITEM_TEST_ID} css={styles.firstAlertPad}>
|
||||
<EuiSpacer size="xs" />
|
||||
<EuiFlexGroup alignItems="center">
|
||||
<EuiFlexItem>
|
||||
|
|
|
@ -79,6 +79,10 @@ export const useStyles = (minimal = false, isInvestigated = false) => {
|
|||
minWidth: 0,
|
||||
};
|
||||
|
||||
const alertCountArrowPad: CSSObject = {
|
||||
marginRight: size.xs,
|
||||
};
|
||||
|
||||
const processPanel: CSSObject = {
|
||||
border: `${borderThickness} solid ${colors.lightShade}`,
|
||||
fontFamily: font.familyCode,
|
||||
|
@ -103,6 +107,12 @@ export const useStyles = (minimal = false, isInvestigated = false) => {
|
|||
float: 'right',
|
||||
};
|
||||
|
||||
const firstAlertPad: CSSObject = {
|
||||
'&:first-child': {
|
||||
paddingTop: size.base,
|
||||
},
|
||||
};
|
||||
|
||||
const minimalHR: CSSObject = {
|
||||
marginBottom: 0,
|
||||
};
|
||||
|
@ -114,9 +124,11 @@ export const useStyles = (minimal = false, isInvestigated = false) => {
|
|||
alertTitle,
|
||||
alertIcon,
|
||||
alertAccordionButton,
|
||||
alertCountArrowPad,
|
||||
processPanel,
|
||||
investigatedLabel,
|
||||
minimalContextMenu,
|
||||
firstAlertPad,
|
||||
minimalHR,
|
||||
};
|
||||
}, [euiTheme, isInvestigated, minimal]);
|
||||
|
|
|
@ -20,14 +20,14 @@ export const useStyles = () => {
|
|||
const tabListTitle = {
|
||||
width: '40%',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
alignItems: 'baseline',
|
||||
marginTop: '0px',
|
||||
};
|
||||
|
||||
const tabListDescription = {
|
||||
width: '60%',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
alignItems: 'baseline',
|
||||
marginTop: '0px',
|
||||
};
|
||||
|
||||
|
|
|
@ -20,11 +20,11 @@ export const useStyles = ({ display }: StylesDeps) => {
|
|||
const item: CSSObject = {
|
||||
display,
|
||||
alignContent: 'center',
|
||||
padding: `0px ${euiTheme.size.s} `,
|
||||
padding: `${euiTheme.size.xs} ${euiTheme.size.s} `,
|
||||
width: '100%',
|
||||
fontWeight: 'inherit',
|
||||
height: euiTheme.size.xl,
|
||||
lineHeight: euiTheme.size.l,
|
||||
height: 'max-content',
|
||||
minHeight: euiTheme.size.l,
|
||||
letterSpacing: '0px',
|
||||
textAlign: 'left',
|
||||
|
||||
|
@ -43,7 +43,7 @@ export const useStyles = ({ display }: StylesDeps) => {
|
|||
'&:hover': {
|
||||
background: transparentize(euiTheme.colors.primary, 0.1),
|
||||
},
|
||||
height: '100%',
|
||||
height: 'fit-content',
|
||||
};
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue