Skip to content

Commit

Permalink
Improve UX by refining marker placement
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-echevarria committed Dec 3, 2024
1 parent c2010eb commit 4739887
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/GamePage/GamePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const GamePage = ({ characters, setCharacters }) => {
...markers,
{
name: marker.name,
x: marker.x,
y: marker.y,
x: marker.x + 8,
y: marker.y + 8,
},
]);
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/GamePage/Targets/Targets.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
border-radius: 5px;
padding: 10px 20px;
font-size: large;
border: 1px solid black;
border: 2px solid black;
}

.found {
border: 4px solid lightgreen;
border: 2px solid lightgreen;
}
2 changes: 1 addition & 1 deletion src/components/GamePage/Targets/Targets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Targets = ({ characters }) => {

return (
<>
<div className="targets"> Targets: {targetBoxes}</div>;
<div className="targets"> Targets: {targetBoxes}</div>
</>
);
};
Expand Down

0 comments on commit 4739887

Please sign in to comment.