Skip to content

Commit 82866d9

Browse files
committed
docs(web): explain floating preview radius alignment
1 parent ccb340d commit 82866d9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/web/src/components/preview/ThreadPreviewMiniPlayer.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ const RESIZE_HANDLES: ReadonlyArray<{
6161
{ direction: "southeast", className: "-bottom-2 -right-2 size-4 cursor-nwse-resize" },
6262
];
6363

64+
/**
65+
* Floats the thread's browser surface over chat. Native clipping and the DOM
66+
* frame use the same radius so their separately composited edges stay aligned.
67+
*/
6468
export function ThreadPreviewMiniPlayer({ threadRef, tabId, bottomInset }: Props) {
6569
const containerRef = useRef<HTMLDivElement | null>(null);
6670
const gestureRef = useRef<PointerGesture | null>(null);

0 commit comments

Comments
 (0)