Skip to content

Commit

Permalink
style: margin for AND delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
nlatipov committed Sep 5, 2022
1 parent 0667694 commit 9b8b104
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ const boderPadding = css`
padding: 14px;
`;

const maginAndFilterGroup = css`
margin: 2px;
`;

const OrDelimiter = ({ isRootLevelFilterGroup }: { isRootLevelFilterGroup: boolean }) => (
<EuiFlexGroup gutterSize="s" responsive={false} alignItems="center">
<EuiFlexItem
Expand Down Expand Up @@ -150,7 +154,11 @@ export const FilterGroup = ({
) : null}

{conditionType === ConditionTypes.AND && index + 1 < acc.length ? (
<EuiFlexItem>
<EuiFlexItem
className={cx({
[maginAndFilterGroup]: shouldDrawBorder(filter),
})}
>
<AndDelimiter />
</EuiFlexItem>
) : null}
Expand Down

0 comments on commit 9b8b104

Please sign in to comment.