Skip to content

Commit 676c578

Browse files
committed
#1578: Fixed small screen view bug
1 parent 43cffe6 commit 676c578

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
103103
const ReceiptFileInput = () => (
104104
<FormControl>
105105
<FormLabel>Receipts</FormLabel>
106-
<ul>
106+
<ul style={{ maxHeight: 100, overflow: 'auto' }}>
107107
{receiptFiles.map((receiptFile, index) => (
108108
<li key={index}>
109109
<Stack key={index} direction="row" justifyContent="space-between">
@@ -142,7 +142,7 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
142142
</Snackbar>
143143
)}
144144
<Grid container spacing={2}>
145-
<Grid item container maxHeight={375} spacing={2} md={6} xs={12}>
145+
<Grid item container maxHeight={375} mb={5} spacing={2} md={6} xs={12}>
146146
<Grid item xs={12}>
147147
<FormControl fullWidth>
148148
<FormLabel>Purchased From</FormLabel>
@@ -292,10 +292,6 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
292292
<FormHelperText error>{errors.receiptFiles?.message}</FormHelperText>
293293
</FormControl>
294294
</Grid>
295-
<Grid item xs={12}>
296-
<FormLabel>Total Cost</FormLabel>
297-
<Typography variant="h6">${calculatedTotalCost}</Typography>
298-
</Grid>
299295
</Grid>
300296
<Grid item md={6} xs={12} sx={{ '&.MuiGrid-item': { paddingTop: '4px' } }}>
301297
<FormControl fullWidth>
@@ -312,14 +308,18 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
312308
</FormControl>
313309
</Grid>
314310
</Grid>
315-
<Box sx={{ display: 'flex', justifyContent: 'flex-end', mt: 2 }}>
316-
<NERFailButton variant="contained" href={previousPage} sx={{ mx: 1 }}>
317-
Cancel
318-
</NERFailButton>
319-
<NERSuccessButton variant="contained" type="submit" disabled={!hasSecureSettingsSet}>
320-
{submitText}
321-
</NERSuccessButton>
322-
</Box>
311+
<Grid item xs={12}>
312+
<FormLabel>Total Cost</FormLabel>
313+
<Typography variant="h6">${calculatedTotalCost}</Typography>
314+
<Box sx={{ display: 'flex', justifyContent: 'flex-end', mt: 2 }}>
315+
<NERFailButton variant="contained" href={previousPage} sx={{ mx: 1 }}>
316+
Cancel
317+
</NERFailButton>
318+
<NERSuccessButton variant="contained" type="submit" disabled={!hasSecureSettingsSet}>
319+
{submitText}
320+
</NERSuccessButton>
321+
</Box>
322+
</Grid>
323323
</form>
324324
);
325325
};

0 commit comments

Comments
 (0)