Skip to content

Commit

Permalink
[Cloud Security] align vertically controls on bechmark pages (elastic…
Browse files Browse the repository at this point in the history
…#191066)

## Summary

- part of elastic/security-team#10316
- fixes
elastic/security-team#9428 (comment)

## Screenshots


<img width="1725" alt="Screenshot 2024-08-22 at 12 34 47"
src="https://github.com/user-attachments/assets/1ff67185-e67d-4aad-9fa2-004508149230">
<img width="1728" alt="Screenshot 2024-08-22 at 12 34 54"
src="https://github.com/user-attachments/assets/7c2f359c-f8c9-4b1d-8a44-b7be76e16610">
  • Loading branch information
maxcold authored Aug 22, 2024
1 parent a524e27 commit 432faea
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import useDebounce from 'react-use/lib/useDebounce';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';
import { css } from '@emotion/react';
import { euiThemeVars } from '@kbn/ui-theme';
import { useKibana } from '../../common/hooks/use_kibana';
import { getFindingsDetectionRuleSearchTagsFromArrayOfRules } from '../../../common/utils/detection_rules';
import {
Expand Down Expand Up @@ -294,9 +293,6 @@ const CurrentPageOfTotal = ({
size="xs"
iconType="arrowDown"
iconSide="right"
css={css`
padding-bottom: ${euiThemeVars.euiSizeS};
`}
data-test-subj={RULES_BULK_ACTION_BUTTON}
>
Bulk actions
Expand Down Expand Up @@ -326,7 +322,7 @@ const CurrentPageOfTotal = ({
return (
<EuiFlexItem grow={false}>
<EuiSpacer size="s" />
<EuiFlexGroup gutterSize="s">
<EuiFlexGroup gutterSize="s" alignItems={'center'}>
<EuiFlexItem grow={false}>
<EuiText size="xs" textAlign="left" color="subdued" style={{ marginLeft: '8px' }}>
<FormattedMessage
Expand All @@ -347,9 +343,6 @@ const CurrentPageOfTotal = ({
onClick={setSelectAllRules}
size="xs"
iconType="pagesSelect"
css={css`
padding-bottom: ${euiThemeVars.euiSizeS};
`}
data-test-subj={RULES_SELECT_ALL_RULES}
>
<FormattedMessage
Expand All @@ -363,9 +356,6 @@ const CurrentPageOfTotal = ({
onClick={() => setSelectedRules([])}
size="xs"
iconType="cross"
css={css`
padding-bottom: ${euiThemeVars.euiSizeS};
`}
data-test-subj={RULES_CLEAR_ALL_RULES_SELECTION}
>
<FormattedMessage
Expand Down

0 comments on commit 432faea

Please sign in to comment.