From d1e61237e3bcfd3df02ad42d66c386c007a1a431 Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Fri, 24 Oct 2025 14:31:18 +0200 Subject: [PATCH 1/2] feat: Dynamic resize for LivingDocs --- CHANGELOG.md | 3 ++- app/pages/embed/[chartId].tsx | 26 ++++++++++++++++++++------ 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 089f906d49..38e599949e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ You can also check the ## Unreleased -Nothing yet. +- Features + - Added dynamic iframe resize support for LivingDocs ### 6.1.2 - 2025-10-22 diff --git a/app/pages/embed/[chartId].tsx b/app/pages/embed/[chartId].tsx index 6780748240..832ba2ed4a 100644 --- a/app/pages/embed/[chartId].tsx +++ b/app/pages/embed/[chartId].tsx @@ -2,6 +2,8 @@ import { Config as PrismaConfig } from "@prisma/client"; import "iframe-resizer/js/iframeResizer.contentWindow.js"; import { GetServerSideProps } from "next"; import ErrorPage from "next/error"; +import Head from "next/head"; +import Script from "next/script"; import { ChartPublished } from "@/components/chart-published"; import { useEmbedQueryParams } from "@/components/embed-params"; @@ -60,12 +62,24 @@ const EmbedPage = (props: PageProps) => { } = props; return ( - - - + <> + + + +