Skip to content

Commit fa5ebef

Browse files
committed
#1297 : Adressed Comments#1
1 parent 86ab136 commit fa5ebef

2 files changed

Lines changed: 25 additions & 29 deletions

File tree

src/frontend/src/components/VerticalDetailDisplay.tsx

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,32 @@ const VerticalDetailDisplay: React.FC<VerticalDetailDisplayProps> = ({ label, co
1717
const theme = useTheme();
1818
const backgroundColor = theme.palette.mode === 'dark' ? theme.palette.grey[800] : theme.palette.grey[200];
1919

20-
// Box Styles
21-
const customSx = {
22-
overflow: 'auto',
23-
whiteSpace: 'nowrap',
24-
backgroundColor: backgroundColor,
25-
justifyContent: 'center',
26-
boxShadow: 1,
27-
borderRadius: '10px'
28-
};
29-
30-
// Custom Scrollbar Styles
31-
const hoverSx = {
32-
'&::-webkit-scrollbar': {
33-
height: '0.6rem' // Adjust the the thickness of the scrollbar
34-
},
35-
'&::-webkit-scrollbar-thumb': {
36-
backgroundColor: '#EF4345', //FinishLine 'red' color
37-
borderRadius: '0.5rem'
38-
},
39-
'&::-webkit-scrollbar-thumb:hover': {
40-
backgroundColor: '#b0191a' // Change to a darker shade of red on hover
41-
}
42-
};
43-
4420
return (
45-
<Box overflow={'auto'} whiteSpace={'nowrap'} sx={{ ...customSx, ...hoverSx }}>
46-
<Typography textOverflow={'ellipsis'} textAlign={'center'} fontSize={'2.5rem'} margin={'0px 10px'}>
21+
<Box
22+
overflow={'auto'}
23+
whiteSpace={'nowrap'}
24+
sx={{
25+
backgroundColor: backgroundColor,
26+
borderRadius: '10px',
27+
justifyContent: 'center',
28+
boxShadow: 1,
29+
'&::-webkit-scrollbar': {
30+
height: '0.55rem' // Adjust the the thickness of the scrollbar
31+
},
32+
'&::-webkit-scrollbar-thumb': {
33+
backgroundColor: '#EF4345', //FinishLine 'red' color
34+
borderRadius: '10px' //make the scrollbar rounded
35+
},
36+
'&::-webkit-scrollbar-thumb:hover': {
37+
backgroundColor: '#b0191a' // Change to a darker shade of red on hover
38+
},
39+
...boxStyle
40+
}}
41+
>
42+
<Typography textOverflow={'ellipsis'} textAlign={'center'} fontSize={50}>
4743
{content}
4844
</Typography>
49-
<Typography textAlign={'center'} fontWeight={'bold'}>
45+
<Typography textAlign={'center'} fontWeight={'bold'} marginBottom={'5px'}>
5046
{label}
5147
</Typography>
5248
</Box>

src/frontend/src/pages/FinancePage/ReimbursementRequestDetailPage/ReimbursementRequestDetailsView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ const ReimbursementRequestDetailsView: React.FC<ReimbursementRequestDetailsViewP
143143
sx={{ backgroundColor: totalCostBackgroundColor, borderRadius: '10px', boxShadow: 1 }}
144144
>
145145
<Grid item xs={6} textAlign={'center'} mt={-2}>
146-
<Typography fontSize={'2.5rem'}>Total Cost</Typography>
146+
<Typography fontSize={50}>Total Cost</Typography>
147147
</Grid>
148148
<Grid xs={6} mt={-2} sx={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
149-
<Typography fontSize={'2.5rem'}>{`$${centsToDollar(reimbursementRequest.totalCost)}`}</Typography>
149+
<Typography fontSize={50}>{`$${centsToDollar(reimbursementRequest.totalCost)}`}</Typography>
150150
</Grid>
151151
</Grid>
152152
</Grid>

0 commit comments

Comments
 (0)