From 21953090802ad36724ce35ee5bcff5c561eebac3 Mon Sep 17 00:00:00 2001 From: Alma Date: Wed, 9 Apr 2025 15:33:51 +0200 Subject: [PATCH] update iframe rules mail --- app/components/responsive-iframe.tsx | 6 ++++-- app/mail/page.tsx | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/components/responsive-iframe.tsx b/app/components/responsive-iframe.tsx index a3c0de65..c9185864 100644 --- a/app/components/responsive-iframe.tsx +++ b/app/components/responsive-iframe.tsx @@ -6,9 +6,10 @@ interface ResponsiveIframeProps { src: string; className?: string; allow?: string; + style?: React.CSSProperties; } -export function ResponsiveIframe({ src, className = '', allow }: ResponsiveIframeProps) { +export function ResponsiveIframe({ src, className = '', allow, style }: ResponsiveIframeProps) { const iframeRef = useRef(null); useEffect(() => { @@ -62,7 +63,8 @@ export function ResponsiveIframe({ src, className = '', allow }: ResponsiveIfram style={{ display: 'block', width: '100%', - height: '100%' + height: '100%', + ...style }} allow={allow} allowFullScreen diff --git a/app/mail/page.tsx b/app/mail/page.tsx index 27daeca8..7457d3d8 100644 --- a/app/mail/page.tsx +++ b/app/mail/page.tsx @@ -16,6 +16,13 @@ export default async function Page() {