Skip to content

Commit

Permalink
ISSUE #4959 - fix risk level icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
Amantini1997 committed Jun 11, 2024
1 parent 486eaef commit 26a60c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import {
StyledFormControl,
} from '../riskDetails/riskDetails.styles';
import { RiskSchema } from '../riskDetails/riskDetails.schema';
import { DateFieldContainer } from './mainRiskFormTab.styles';
import { DateFieldContainer, RiskLevelIconResizer } from './mainRiskFormTab.styles';

interface IProps {
risk: any;
Expand Down Expand Up @@ -148,7 +148,9 @@ export const MainRiskFormTab: FunctionComponent<IProps> = ({

<FieldsContainer size={'tight'}>
<StyledFormControl>
<LevelOfRisk header="Level of Risk" level={values.level_of_risk} Icon={RisksIcon} />
<RiskLevelIconResizer>
<LevelOfRisk header="Level of Risk" level={values.level_of_risk} Icon={RisksIcon} />
</RiskLevelIconResizer>
<Field name="level_of_risk" render={({ field }) => (
<CellSelect
{...field}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ import styled from 'styled-components';
export const DateFieldContainer = styled.div`
margin-top: 16px;
`;

export const RiskLevelIconResizer = styled.div`
display: contents;
svg {
width: 50px;
height: 50px;
}
`;

0 comments on commit 26a60c2

Please sign in to comment.