Skip to content

Commit a4c6fd7

Browse files
committed
Refactor modal layout for improved spacing and responsiveness
1 parent 4798a66 commit a4c6fd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/(pages)/(main)/volunteering/logs/voucherRecipt.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function voucherRecipt(showRecipt, setShowRecipt, vouchersUsed, d
1414
borderRadius: '10px',
1515
boxShadow: 24,
1616
display: "grid",
17-
gridTemplateRows: '1fr .5fr 1rem 1fr 1fr',
17+
gridTemplateRows: '1fr .5fr auto auto 1fr',
1818
alignItems: 'center',
1919
justifyItems: 'center'
2020
};
@@ -32,10 +32,10 @@ export default function voucherRecipt(showRecipt, setShowRecipt, vouchersUsed, d
3232
<Typography id="modal-modal-title" variant="h2" component="h2" sx={{alignSelf:"end", textAlign: "center"}}>
3333
{vouchersUsed}
3434
</Typography>
35-
<Typography>
35+
<Typography sx={{maxWidth:"80%"}}>
3636
{description}
3737
</Typography>
38-
<SvgIcon sx={{width: "100%", height: "100%", paddingTop: "10%"}}>
38+
<SvgIcon sx={{width: "100%", height: "100%", paddingTop: "10%", maxHeight: "150px"}}>
3939
<svg enable-background="new 0 0 24 24" viewBox="0 0 24 24" fill="#000">
4040
<g>
4141
<path d="M0,0h24v24H0V0z" fill="none"/>
@@ -48,7 +48,7 @@ export default function voucherRecipt(showRecipt, setShowRecipt, vouchersUsed, d
4848
</g>
4949
</svg>
5050
</SvgIcon>
51-
<Button variant="text" sx={{width: "70%", height: 50, bgcolor: "#333"}} onClick={closeModal}>
51+
<Button variant="text" sx={{width: "70%", height: 50, bgcolor: "#333", marginBottom: "10px"}} onClick={closeModal}>
5252
Confim
5353
</Button>
5454
</Box>

0 commit comments

Comments
 (0)