From 56e3bd1cf2ccd8235b82d9e48ef77563a12efbda Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Sun, 2 Aug 2026 15:57:05 +0200 Subject: [PATCH] fix: smooth container collapse behavior --- apps/docs/docs/management/boards/index.mdx | 2 +- .../components/board/items/item-content.tsx | 3 +- .../board/sections/container-section.tsx | 33 +++++++++++-------- .../components/board/sections/item.module.css | 24 ++++++++++++++ e2e/board-grid.spec.ts | 17 ++++++++-- 5 files changed, 61 insertions(+), 18 deletions(-) diff --git a/apps/docs/docs/management/boards/index.mdx b/apps/docs/docs/management/boards/index.mdx index a1e0ad206..3c94dceae 100644 --- a/apps/docs/docs/management/boards/index.mdx +++ b/apps/docs/docs/management/boards/index.mdx @@ -182,7 +182,7 @@ Each Container can configure: - Its border color and custom CSS classes. Collapsing a Container reduces its full-width header to a half-row expansion bar and compacts the surrounding layout without losing its expanded size. -Expanding it restores those bounds and moves following items out of the way. +Expanding it smoothly restores those bounds and moves following items out of the way without reloading the widgets inside it. ### Background diff --git a/apps/nextjs/src/components/board/items/item-content.tsx b/apps/nextjs/src/components/board/items/item-content.tsx index c736a1437..009cef59a 100644 --- a/apps/nextjs/src/components/board/items/item-content.tsx +++ b/apps/nextjs/src/components/board/items/item-content.tsx @@ -30,8 +30,9 @@ interface BoardItemContentProps { } const getOverflowFromKind = (kind: SectionItem["kind"]) => { + if (kind === "iframe") return "hidden"; if (kind === "systemResources") return "visible"; - return "hidden"; + return undefined; }; export const BoardItemContent = ({ item }: BoardItemContentProps) => { diff --git a/apps/nextjs/src/components/board/sections/container-section.tsx b/apps/nextjs/src/components/board/sections/container-section.tsx index 7ad6c31df..32c1bc46a 100644 --- a/apps/nextjs/src/components/board/sections/container-section.tsx +++ b/apps/nextjs/src/components/board/sections/container-section.tsx @@ -66,13 +66,13 @@ export const BoardContainerSection = ({ section }: Props) => {