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 941ad54 commit 8c96706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion app/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function Header() {
const [exposedPercent] = useSocketEvent("exposedPercent");

return (
<header className="box-content w-[min(var(--field-size),100%)] px-4 py-1 flex justify-between">
<header className="w-[min(var(--field-size),100%)] px-4 py-1 flex justify-between">
<div className="flex flex-row gap-6">
<h1 className="text-4xl font-extrabold uppercase italic pr-4">
mmmines!
Expand Down

0 comments on commit 8c96706

Please sign in to comment.