Skip to content

Commit

Permalink
Merge pull request #388 from shreyas1434shinde/notification
Browse files Browse the repository at this point in the history
grid Ui issue fix
  • Loading branch information
itsvick authored Dec 2, 2024
2 parents 75ed371 + 0d5db5e commit 6c0cb3e
Showing 1 changed file with 42 additions and 40 deletions.
82 changes: 42 additions & 40 deletions src/pages/stateDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,53 +80,55 @@ const StateDetails = () => {
</Typography>
</Box>
<Divider />
<Grid container spacing={2} sx={{ marginTop: "16px", ml: 2 }}>
<Box sx={{mx:'16px'}}>
<Box
sx={{ display: "flex", alignItems: "center", gap: 2, mb: 2, mt: 2 }}
sx={{ display: "flex", alignItems: "center", gap: 2, mt: 2, }}
>
<Typography variant="h2">Boards:</Typography>
</Box>
{boards.map((board: any, index: number) => (
<Grid item xs={12} md={4} key={index}>
<Box
sx={{
alignItems: "center",
cursor: "pointer",
border: "1px solid #0000001A",
boxShadow: "none",
transition: "background-color 0.3s",
"&:hover": {
backgroundColor: "#EAF2FF",
},
<Grid container spacing={2} sx={{ overflow: "hidden", maxWidth: "100%" }}>
{boards.map((board: any, index: number) => (
<Grid item xs={12} sm={6} md={4} lg={3} key={index}>
<Box
sx={{
alignItems: "center",
cursor: "pointer",
border: "1px solid #0000001A",
boxShadow: "none",
transition: "background-color 0.3s",
"&:hover": {
backgroundColor: "#EAF2FF",
},

marginTop: "8px",
padding: "16px",
display: "flex",
justifyContent: "space-between",
}}
onClick={() => {
handleBoardClick(board.code, board.name);
console.log(board);
}}
>
<Box>
<Box
sx={{
display: "flex",
alignItems: "center",
gap: "8px",
}}
>
<FolderOutlinedIcon />
<Typography variant="h6" sx={{ fontSize: "16px" }}>
{board.name}
</Typography>
marginTop: "8px",
padding: "16px",
display: "flex",
justifyContent: "space-between",
}}
onClick={() => {
handleBoardClick(board.code, board.name);
console.log(board);
}}
>
<Box>
<Box
sx={{
display: "flex",
alignItems: "center",
gap: "8px",
}}
>
<FolderOutlinedIcon />
<Typography variant="h6" sx={{ fontSize: "16px" }}>
{board.name}
</Typography>
</Box>
</Box>
</Box>
</Box>
</Grid>
))}
</Grid>
</Grid>
))}
</Grid>
</Box>
</Box>
);
};
Expand Down

0 comments on commit 6c0cb3e

Please sign in to comment.