diff --git a/frontend/src/employee-frontend/components/child-information/fee-alteration/FeeAlterationList.tsx b/frontend/src/employee-frontend/components/child-information/fee-alteration/FeeAlterationList.tsx index 26d8360506f..189b5b7597f 100755 --- a/frontend/src/employee-frontend/components/child-information/fee-alteration/FeeAlterationList.tsx +++ b/frontend/src/employee-frontend/components/child-information/fee-alteration/FeeAlterationList.tsx @@ -88,42 +88,44 @@ export default React.memo(function FeeAlterationList({ }`} {feeAlteration.notes} - {feeAlteration.modifiedAt && ( - - - {i18n.childInformation.feeAlteration.lastModifiedAt( - feeAlteration.modifiedAt.format() - )} - - - )} - - {permittedActions.includes('UPDATE') && ( - { - if (feeAlteration.id !== null) { - toggleEditing(feeAlteration.id) + + {feeAlteration.modifiedAt && ( + + - )} - {permittedActions.includes('DELETE') && ( - toggleDeleteModal(feeAlteration)} - aria-label={i18n.common.remove} - /> + > + {i18n.childInformation.feeAlteration.lastModifiedAt( + feeAlteration.modifiedAt.format() + )} + + )} - + + {permittedActions.includes('UPDATE') && ( + { + if (feeAlteration.id !== null) { + toggleEditing(feeAlteration.id) + } + }} + aria-label={i18n.common.edit} + /> + )} + {permittedActions.includes('DELETE') && ( + toggleDeleteModal(feeAlteration)} + aria-label={i18n.common.remove} + /> + )} + + {feeAlteration.attachments.length > 0 && ( p.theme.colors.main.m2}; margin-right: ${defaultMargins.s}; ` + +const RightHandSide = styled(FixedSpaceRow)` + min-width: 50%; + justify-content: space-between; +` diff --git a/frontend/src/employee-frontend/components/person-profile/income/IncomeItemHeader.tsx b/frontend/src/employee-frontend/components/person-profile/income/IncomeItemHeader.tsx index f2bd50633c6..77783c9a5f2 100755 --- a/frontend/src/employee-frontend/components/person-profile/income/IncomeItemHeader.tsx +++ b/frontend/src/employee-frontend/components/person-profile/income/IncomeItemHeader.tsx @@ -41,6 +41,11 @@ const Row = styled(FixedSpaceRow)` align-items: center; ` +const RightHandSide = styled(Row)` + min-width: 50%; + justify-content: space-between; +` + interface Props { title: string isOpen: boolean @@ -83,50 +88,52 @@ const IncomeItemHeader = React.memo(function IncomeItemHeader({ {period} - {modifiedAt && ( - - - {i18n.personProfile.income.lastModifiedAt(modifiedAt.format())} - - - )} - - {permittedActions.includes('UPDATE') && ( -