Skip to content

Commit

Permalink
Minor css fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sadanandpai committed Mar 31, 2024
1 parent 35f4101 commit edc10d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions src/apps/path-finder/components/modal-icon/modal-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const mazeAlgoInfo = [
`,
},
{
id: 5,
id: 6,
heading: 'Binary tree algorithm',
content: `
The binary tree algorithm is a simple method for generating mazes.
Expand All @@ -52,31 +52,31 @@ export const mazeAlgoInfo = [
`,
},
{
id: 6,
id: 7,
heading: ' Ellers Algorithm',
content: `
Eller's algorithm works by iteratively generating one row of the maze at a time, which makes it particularly efficient in terms of memory usage.
It's also notable for its ability to generate mazes with horizontal passages that span the entire width of the maze.
`,
},
{
id: 7,
id: 8,
heading: 'Sidewinder Algorithm',
content: `
The Sidewinder algorithm is a relatively simple and efficient for generating mazes.
It is named after the sidewinder snake due to the pattern it creates in the maze.
The algorithm primarily works by carving passages either horizontally or vertically, resulting in a maze with a strong bias towards corridors that are mostly horizontal or mostly vertic`,
},
{
id: 8,
id: 9,
heading: 'Labyrinth Algorithm',
content: `
The Labyrinth algorithm is a maze generation algorithm that works by creating a grid of cells and carving passages between them.
It is a simple and efficient algorithm that can generate mazes of varying complexity.
`,
},
{
id: 9,
id: 10,
heading: 'Random Algorithm',
content: `
The Random algorithm is a simple maze generation algorithm that works by randomly placing the walls in the grid.
Expand Down
6 changes: 3 additions & 3 deletions src/apps/path-finder/components/modal-icon/modals.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use '/src/host/styles/theme';

.mainModal {
.infoButton {
display: none;
}

Expand Down Expand Up @@ -81,8 +81,8 @@
}

@media (width >= 1200px) {
.mainModal {
display: block;
.infoButton {
display: inline-block;
}
}

Expand Down
12 changes: 6 additions & 6 deletions src/apps/path-finder/components/modal-icon/modals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ const Modals = ({ content }: Props) => {
};

return (
<div className={classes.mainModal}>
<>
<button onClick={handleShowModal} className={classes.infoButton}>
<Info size={20} />
</button>

<dialog ref={dialogRef} className={classes.dialog}>
<button onClick={handleCloseModal} className={classes.closeButton}>
<X />
Expand All @@ -33,11 +37,7 @@ const Modals = ({ content }: Props) => {
))}
</div>
</dialog>

<button onClick={handleShowModal} className={classes.infoButton}>
<Info />
</button>
</div>
</>
);
};

Expand Down

0 comments on commit edc10d8

Please sign in to comment.