Skip to content

Commit

Permalink
grid size changed
Browse files Browse the repository at this point in the history
  • Loading branch information
hc0127 committed Nov 20, 2024
1 parent 9536428 commit 6f01f23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Positions/PositionGridSkeleton.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
repeating-linear-gradient(to bottom,
gray, gray 1px,
/* gray line */
transparent 1px, transparent 50px
transparent 1px, transparent 20px
/* Space */
),
repeating-linear-gradient(to right,
gray, gray 1px,
/* Black line */
transparent 1px, transparent 50px
transparent 1px, transparent 20px
/* Space */
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Positions/PositionGridSkeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const PositionGridSkeleton = ({ children, className, selected }: PositionGridSke

let positionX = (event.clientX - rect.left); // Get the x-coordinate
let positionY = (event.clientY - rect.top); // Get the y-coordinate
positionX = positionX - positionX % 50 + 1;
positionY = positionY - positionY % 50 + 1;
positionX = positionX - positionX % 20 + 1;
positionY = positionY - positionY % 20 + 1;

try {
await DB.Positions.Update({ ...selected, positionX, positionY });
Expand Down

0 comments on commit 6f01f23

Please sign in to comment.