update iframe rules mail 4
This commit is contained in:
parent
b1df9ec38e
commit
03e5865856
@ -10,25 +10,12 @@ export default async function Page() {
|
|||||||
redirect("/signin");
|
redirect("/signin");
|
||||||
}
|
}
|
||||||
|
|
||||||
const mailUrl = process.env.NEXT_PUBLIC_IFRAME_MAIL_URL;
|
|
||||||
if (!mailUrl) {
|
|
||||||
console.warn("NEXT_PUBLIC_IFRAME_MAIL_URL is not defined in environment variables");
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="w-full h-screen bg-[#1E1E1E]">
|
<main className="w-full h-screen bg-black">
|
||||||
<div className="w-full h-full px-4 pt-12 pb-4">
|
<div className="w-full h-full px-4 pt-12 pb-4">
|
||||||
<ResponsiveIframe
|
<ResponsiveIframe
|
||||||
src={mailUrl || 'https://mail.slm-lab.net'}
|
src={process.env.NEXT_PUBLIC_IFRAME_MAIL_URL || ''}
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
className="relative"
|
|
||||||
style={{
|
|
||||||
marginTop: '-64px',
|
|
||||||
marginLeft: '-180px',
|
|
||||||
width: 'calc(100% + 360px)',
|
|
||||||
right: '-90px',
|
|
||||||
height: 'calc(100% + 64px)'
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user