Skip to content

Commit

Permalink
fix: broken padding when field-size is set
Browse files Browse the repository at this point in the history
  • Loading branch information
lewxdev committed Aug 27, 2024
1 parent 0546a19 commit 83991e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function Field() {
useEffect(() => {
document.documentElement.style.setProperty(
"--field-size",
size ? `${size * GRID_SIZE + (size - 1) * GAP_SIZE}rem` : "100%",
size ? `${size * GRID_SIZE + (size - 1) * GAP_SIZE + 2}rem` : "100%",
);
}, [size]);

Expand Down

0 comments on commit 83991e8

Please sign in to comment.