Skip to content

Commit 4e03dda

Browse files
committed
#1578: Moving sticky bottom to bottom and aligning components
1 parent 2c9a4ce commit 4e03dda

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/frontend/src/pages/FinancePage/ReimbursementRequestForm/ReimbursementFormView.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
130130
e.stopPropagation();
131131
handleSubmit(onSubmit)(e);
132132
}}
133+
style={{ minHeight: 'calc(100vh - 161px)', display: 'flex', flexDirection: 'column', justifyContent: 'space-between' }}
133134
>
134135
{!hasSecureSettingsSet && (
135136
<Snackbar anchorOrigin={{ vertical: 'top', horizontal: 'center' }} open={true}>
@@ -315,15 +316,18 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
315316
position: 'sticky',
316317
bottom: 0,
317318
background: theme.palette.background.default,
318-
paddingY: 1,
319+
p: 1,
319320
borderTop: `solid 1px ${theme.palette.divider}`,
320321
zIndex: 1,
321-
mt: 2
322+
display: 'flex',
323+
justifyContent: 'space-between'
322324
}}
323325
>
324-
<FormLabel>Total Cost</FormLabel>
325-
<Typography variant="h6">${calculatedTotalCost}</Typography>
326-
<Box sx={{ display: 'flex', justifyContent: 'flex-end' }}>
326+
<Box>
327+
<FormLabel>Total Cost</FormLabel>
328+
<Typography variant="h6">${calculatedTotalCost}</Typography>
329+
</Box>
330+
<Box sx={{ display: 'flex', alignSelf: 'center' }}>
327331
<NERFailButton variant="contained" href={previousPage} sx={{ mx: 1 }}>
328332
Cancel
329333
</NERFailButton>

0 commit comments

Comments
 (0)