Skip to content

Commit

Permalink
Remove useContextualLayer shift (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek authored Dec 4, 2024
1 parent 07aa94e commit 8304302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lake/src/hooks/useContextualLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const useContextualLayer = ({
};

const horizontalPosition = match(inferedPlacement)
.with("left", () => ({ left: rect.left - 12 }))
.with("left", () => ({ left: rect.left }))
.with("right", () => ({ right: window.innerWidth - rect.right }))
.with("center", () => ({ left: rect.left + width / 2, transform: "translateX(-50%)" }))
.exhaustive();
Expand Down

0 comments on commit 8304302

Please sign in to comment.