fix: refine utility widget presentation

This commit is contained in:
ajnart committed 2026-08-20 15:22:34 +02:00
1 parent 56c2c4dcc0
commit 52d96505a3
4 files changed
+118 -92

No files matched your search

@@ -227,7 +227,9 @@ const LoadedBoardItemContent = ({
(host: HTMLDivElement | null) => {
if (!host || !surfacePortalTarget || isAdvanced) return;
cancelPreviewEntrance();
host.append(surfacePortalTarget);
if (host.childNodes.length !== 1 || host.firstChild !== surfacePortalTarget) {
host.replaceChildren(surfacePortalTarget);
}
},
[cancelPreviewEntrance, isAdvanced, surfacePortalTarget],
);