Skip to content

Commit ade4ead

Browse files
committed
Adjust the dismiss button positioning logic
1 parent bbd7792 commit ade4ead

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/extension/src/components/FloatingPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ export default function FloatingPanel({
311311
}}
312312
onPointerDown={(e) => e.stopPropagation()}
313313
className={[
314-
// Flip to the outer top corner so the X is always on the viewport-edge side.
314+
// Inner top corner: upper-left when docked right, upper-right when docked left.
315315
"absolute top-0 -translate-y-1/2",
316-
dockRight ? "right-[3px]" : "left-[3px]",
316+
dockRight ? "left-[3px]" : "right-[3px]",
317317
"flex h-[18px] w-[18px] items-center justify-center",
318318
"rounded-full bg-white shadow-[0_1px_4px_rgba(0,0,0,0.22)]",
319319
"opacity-0 transition-opacity duration-150",

0 commit comments

Comments
 (0)