Skip to content

Commit

Permalink
Update MapDialog styles and enhance close button appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Jan 4, 2025
1 parent d89f505 commit 581d21f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
14 changes: 9 additions & 5 deletions frontend/src/assets/css/map-dialog.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
.map-dialog {
width: 90%;
height: 90%;
}

.map-dialog-content {
margin: 0;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.close-icon {
color: #fff;
font-size: 20px !important;
}

.close-btn:hover > * {
color: #d1d1d1;
}
14 changes: 11 additions & 3 deletions frontend/src/components/MapDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,29 @@ const MapDialog = ({
sx={{
'& .MuiDialog-container': {
'& .MuiPaper-root': {
width: '90%',
height: '90%',
width: '95%',
height: '95%',
},
'& .MuiDialogTitle-root': {
padding: 0,
backgroundColor: '#1a1a1a',
},
'& .MuiDialogContent-root': {
padding: 0,
}
},
}}
>
<DialogTitle>
<Box display="flex" justifyContent="flex-end">
<Box>
<IconButton
className="close-btn"
onClick={() => {
close()
}}
>
<CloseIcon />
<CloseIcon className="close-icon" />
</IconButton>
</Box>
</Box>
Expand Down

0 comments on commit 581d21f

Please sign in to comment.