diff --git a/apps/Mintbase/data.json b/apps/Mintbase/data.json index 204825e4..d2344a91 100644 --- a/apps/Mintbase/data.json +++ b/apps/Mintbase/data.json @@ -1,3 +1,3 @@ { - "bos.genadrop.near": {} + "mintbos.testnet": {} } diff --git a/apps/Mintbase/widget/Mintbase/App/Layout.jsx b/apps/Mintbase/widget/Mintbase/App/Layout.jsx index f775d711..1a81388b 100644 --- a/apps/Mintbase/widget/Mintbase/App/Layout.jsx +++ b/apps/Mintbase/widget/Mintbase/App/Layout.jsx @@ -1,33 +1,48 @@ +const data = fetch(`https://httpbin.org/headers`); +const gatewayURL = data?.body?.headers?.Origin ?? ""; + +const Container = gatewayURL.includes("near.org") + ? styled.div` + width: 100%; + ` + : styled.div` + position: fixed; + inset: 73px 0px 0px; + width: 100%; + overflow-y: scroll; + `; return { Layout: ({ variant, blocks, children, isHome }) => { switch (variant) { case "standard": { const { Header, Footer } = blocks; return ( -