From 22b1dd3f5606aedb75cc9544ba62be2434417fb3 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Mon, 27 Jul 2026 14:07:36 +0200 Subject: [PATCH] fix: portal wrapup share card to escape transform stacking context --- spa/src/components/wrapup-share-card.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spa/src/components/wrapup-share-card.tsx b/spa/src/components/wrapup-share-card.tsx index 70a69f9..47bfcca 100644 --- a/spa/src/components/wrapup-share-card.tsx +++ b/spa/src/components/wrapup-share-card.tsx @@ -1,4 +1,5 @@ import { useEffect, useRef, useState } from "react" +import { createPortal } from "react-dom" import { useTranslation } from "react-i18next" import { Download, Share2, X } from "lucide-react" import html2canvas from "html2canvas-pro" @@ -59,7 +60,7 @@ export function WrapUpShareCard({ report, onClose }: Props) { } } - return ( + return createPortal(
- + , + document.body, ) }