Skip to content

Commit

Permalink
Fix Schedule container width conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdjere committed Sep 19, 2022
1 parent 985b86c commit ab26845
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

import type { FC } from 'react';
import styled from 'styled-components';
import React, { memo, useCallback, useEffect } from 'react';
import type { RuleStepProps, ScheduleStepRule } from '../../../pages/detection_engine/rules/types';
import { RuleStep } from '../../../pages/detection_engine/rules/types';
Expand All @@ -16,6 +17,9 @@ import { StepContentWrapper } from '../step_content_wrapper';
import { NextStep } from '../next_step';
import { schema } from './schema';

const StyledForm = styled(Form)`
max-width: 235px !important;
`;
interface StepScheduleRuleProps extends RuleStepProps {
defaultValues: ScheduleStepRule;
onRuleDataChange?: (data: ScheduleStepRule) => void;
Expand Down Expand Up @@ -83,7 +87,7 @@ const StepScheduleRuleComponent: FC<StepScheduleRuleProps> = ({
) : (
<>
<StepContentWrapper addPadding={!isUpdateView}>
<Form form={form} data-test-subj="stepScheduleRule">
<StyledForm form={form} data-test-subj="stepScheduleRule">
<UseField
path="interval"
component={ScheduleItem}
Expand All @@ -103,7 +107,7 @@ const StepScheduleRuleComponent: FC<StepScheduleRuleProps> = ({
minimumValue: 1,
}}
/>
</Form>
</StyledForm>
</StepContentWrapper>

{!isUpdateView && (
Expand Down

0 comments on commit ab26845

Please sign in to comment.