@@ -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 >
0 commit comments