diff --git a/ui/v2.5/src/components/Shared/ExternalLinksButton.tsx b/ui/v2.5/src/components/Shared/ExternalLinksButton.tsx
index 00b318c65..7ecea9b30 100644
--- a/ui/v2.5/src/components/Shared/ExternalLinksButton.tsx
+++ b/ui/v2.5/src/components/Shared/ExternalLinksButton.tsx
@@ -5,6 +5,7 @@ import { Icon } from "./Icon";
import { IconDefinition, faLink } from "@fortawesome/free-solid-svg-icons";
import { useMemo } from "react";
import { faInstagram, faTwitter } from "@fortawesome/free-brands-svg-icons";
+import ReactDOM from "react-dom";
export const ExternalLinksButton: React.FC<{
icon?: IconDefinition;
@@ -15,25 +16,8 @@ export const ExternalLinksButton: React.FC<{
return null;
}
- if (urls.length === 1) {
- return (
-
- );
- }
-
- return (
-
-
-
-
-
+ const Menu = () =>
+ ReactDOM.createPortal(
{urls.map((url) => (
))}
-
+ ,
+ document.body
+ );
+
+ return (
+
+
+
+
+
);
};