From 5f77ac76aef083f007a05407f54ed217eee5831f Mon Sep 17 00:00:00 2001 From: Alma Date: Wed, 9 Apr 2025 11:56:16 +0200 Subject: [PATCH] learn iframe fixed for nextcloud dairy drive contacts --- app/contacts/page.tsx | 6 ++++++ app/diary/page.tsx | 6 ++++++ app/drive/page.tsx | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/app/contacts/page.tsx b/app/contacts/page.tsx index 79f8cbab..c4d6679f 100644 --- a/app/contacts/page.tsx +++ b/app/contacts/page.tsx @@ -16,6 +16,12 @@ export default async function Page() { src="https://espace.slm-lab.net/apps/contacts" 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', + width: 'calc(100% + 250px)' + }} allowFullScreen /> diff --git a/app/diary/page.tsx b/app/diary/page.tsx index 541769c9..4950539c 100644 --- a/app/diary/page.tsx +++ b/app/diary/page.tsx @@ -16,6 +16,12 @@ export default async function Page() { src="https://espace.slm-lab.net/apps/diary" 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', + width: 'calc(100% + 250px)' + }} allowFullScreen /> diff --git a/app/drive/page.tsx b/app/drive/page.tsx index affe9270..1ecb63d1 100644 --- a/app/drive/page.tsx +++ b/app/drive/page.tsx @@ -16,6 +16,12 @@ export default async function Page() { src="https://espace.slm-lab.net/apps/files" 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', + width: 'calc(100% + 250px)' + }} allowFullScreen />