Skip to content

Commit

Permalink
fix: show line spacing in summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
9sneha-n committed Oct 31, 2024
1 parent d8d4d41 commit 2091b58
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ const SummaryContainer = styled.div`
margin-top: 0rem;
color: ${props => props.theme.palette.text.hint};
gap: 1rem;
white-space: pre-line;
`;
1 change: 1 addition & 0 deletions src/webapp/components/form/form-summary/FormSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,5 @@ const SummaryColumn = styled.div`

const StyledType = styled(Typography)`
color: ${props => props.theme.palette.text.hint};
white-space: pre-line;
`;
9 changes: 8 additions & 1 deletion src/webapp/pages/form-page/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,14 @@ export function useForm(formType: FormType, id?: Id): State {
});
}
);
}, [compositionRoot.getConfigurableForm, formType, id, currentEventTracker, configurations, existingEventTrackerTypes]);
}, [
compositionRoot.getConfigurableForm,
formType,
id,
currentEventTracker,
configurations,
existingEventTrackerTypes,
]);

const handleAddNew = useCallback(() => {
if (formState.kind !== "loaded" || !configurableForm) return;
Expand Down

0 comments on commit 2091b58

Please sign in to comment.