From 1477dab2c3b840ed6d4b7821677393a3fa7f6a9e Mon Sep 17 00:00:00 2001 From: Alma Date: Wed, 9 Apr 2025 11:50:04 +0200 Subject: [PATCH] learn iframe fixed for nextcloud mail --- app/mail/page.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/mail/page.tsx b/app/mail/page.tsx index 9549edbb..801035ea 100644 --- a/app/mail/page.tsx +++ b/app/mail/page.tsx @@ -16,6 +16,12 @@ export default async function Page() { src="https://espace.slm-lab.net/apps/mail" className="w-full h-full border-none" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" + sandbox="allow-same-origin allow-scripts allow-popups allow-forms" + style={{ + marginTop: '-64px', + marginLeft: '-250px', // Adjust this value based on the sidebar width + width: 'calc(100% + 250px)' // Compensate for the negative margin + }} allowFullScreen />